-
Notifications
You must be signed in to change notification settings - Fork 219
Using corners of the map to calculate the area of whole world does not return correct result #1074
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
Comments
@cffk, apologies for bothering you again. However, I think you would be able to give a much better response to this question. |
Plot your 4 plots on a globe instead of a map (and replace the 89.9999 by 90) and you will see that they outline a narrow lune of width 0.0002 deg. If you multiply your result by 360/0.0002 you get the full area of the earth. You got a negative result because your lune was traversed clockwise. Better would be to bite off half the globe, e.g., with 3 points on the equator data = [ (0, 0), (0, 120), (0, -120) ] and multiply this result by 2.
|
@masterAllen Are you set now? Unless you still have questions, this issue can be closed as resolved. |
Thanks @cffk 👍. @masterAllen feel free to comment if you have further questions. |
So sorry for late reply. I have no questions now, thank you for your help :D |
Code Sample, a copy-pastable example if possible
Problem description
I want to calculate the area of whole world, so i use polygon with four points which are corners of the map. But the result is 283369789.8556872 which is very small.
Expected Output
The area of whole world
Environment Information
pyproj -v
Installation method
The text was updated successfully, but these errors were encountered: