Skip to content
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

Area is 0 if wrong winding order #4

Open
JoelBennett opened this issue Dec 13, 2017 · 1 comment
Open

Area is 0 if wrong winding order #4

JoelBennett opened this issue Dec 13, 2017 · 1 comment

Comments

@JoelBennett
Copy link

If passing in geojson that has an outer ring with a clockwise winding order, it return an area of 0. The revised geojson spec says that the outside ring should have a counterclockwise winding order. I'd think that it should either raise an exception (because the geojson is invalid) or return a negative area. Right now it seems to be returning 0, which is a bit counter-intuitive.

@astrojuanlu
Copy link

...also if you pass a Feature instead of a geometry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants