-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The interpolation result heatmap has abnormal deformation on the x-axis #11
Comments
Do you use the Mercator projection? Only this projection is supported |
Yes! Mercator projection is the default projection and I didn't change it. The problem still exists. |
So I think this is related to the nature of the IDW formula. If the range of latitude of your points is bigger than the range of longitude of your points, then you see these elongated ellipses along the x-axis. For example, here is what it looks with 5 points that have the same latitude: And here is what it looks with 5 points that have the same longitude: I'm not sure if this is the correct explanation though. Does it make sense to you? |
Yeah I think it makes sense. Because I tried setting my map size to a 1:1 aspect ratio and the heatmap stretching stopped happening. Thanks a lot. |
You're right. I spent a few days thinking of a solution and I came up with a very simple one. Could you try version 1.6.1 and tell me if it's good for you? |
Hi, I tried the new version and it works perfectly now. Thanks! |
Hello, I encountered some problems when using your open source interpolation API, as shown in the figure below:
In theory, the interpolation result should present circular hot spots around the data points, but in my drawing results, the hot spots are distributed in elongated ellipses along the x-axis. My drawing is based on the Mapbox API, so I want to confirm whether this problem may be related to the coordinate system I use?
I have carefully checked the parameter settings of the interpolation calculation and found no obvious problems. Have you encountered similar situations? Or do you have a recommended solution?
Thank you very much for your help!
The text was updated successfully, but these errors were encountered: