area icon indicating copy to clipboard operation
area copied to clipboard

Area is 0 if wrong winding order

Open JoelBennett opened this issue 7 years ago • 1 comments

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.

JoelBennett avatar Dec 13 '17 16:12 JoelBennett

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

astrojuanlu avatar Dec 10 '19 14:12 astrojuanlu