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

Document the winding order of cell boundary points #724

Open
iverase opened this issue Nov 5, 2022 · 2 comments
Open

Document the winding order of cell boundary points #724

iverase opened this issue Nov 5, 2022 · 2 comments

Comments

@iverase
Copy link

iverase commented Nov 5, 2022

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.

@nrabinowitz
Copy link
Collaborator

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.

@iverase
Copy link
Author

iverase commented Nov 7, 2022

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

@nrabinowitz nrabinowitz changed the title Document the orientation of cell boundary points Document the winding order of cell boundary points Nov 7, 2022
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