-
Notifications
You must be signed in to change notification settings - Fork 87
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
Inconsistency between raster and polygon area #1438
Comments
You get the same number as for the raster data if you do
And that is not unexpected given how the raster algorithm works. So the question is why a single polygon covering the same area does not return the same number.
This difference only shows up when computing the area from angular coordinates. There is no difference if you use planar coordinates (but these numbers are less precise, unless the original data source had a planar crs).
So there can be a difference in precision in the lon/lat area computation when you compare the area for a single polygon versus the area of same polygon subdivided into many small cells. I suspect that the division into many small cells introduces additional floating point imprecision and that the number for the undivided polygon is closer to the truth. The difference is very small, so there does not seem to be a reason to be worried about it. |
Hi,
I expected these
expanse()
outputs to be the same, but they vary slightly:The text was updated successfully, but these errors were encountered: