h3 icon indicating copy to clipboard operation
h3 copied to clipboard

Document the winding order of cell boundary points

Open iverase opened this issue 3 years ago • 2 comments
trafficstars

I think points are always returned with clockwise orientation? (I always get confused with this definition) but there is nothing in the documentation. It is valuable information and it would be nice to be documented.

iverase avatar Nov 05 '22 11:11 iverase

I think it's the opposite, the points are always counter-clockwise. This follows the GeoJSON spec for the outer ring of polygons. Agree that we should document this, it's a fixed element of the API.

nrabinowitz avatar Nov 07 '22 00:11 nrabinowitz

Oh yes, you are totally right. Points are counter-clockwise, e.g the signed area is positive.

iverase avatar Nov 07 '22 07:11 iverase