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

use right-hand rule for metadata geometry definitions #208

Open
johntruckenbrodt opened this issue May 27, 2024 · 0 comments
Open

use right-hand rule for metadata geometry definitions #208

johntruckenbrodt opened this issue May 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@johntruckenbrodt
Copy link
Member

johntruckenbrodt commented May 27, 2024

According to the GeoJSON specification, the outer rings of (multi)-polygons should follow the right-hand rule. I.e., its coordinates should be defined counter-clockwise. See specification section 3.1.6.
Currently the geometry is defined clockwise. This should be changed.

The GML standard allows both conventions. For the sake of simplicity the right-hand rule should be applied to the GML definition in the XML metadata files as well.

Function to be changed: metadata.extract.geometry_from_vec.

@johntruckenbrodt johntruckenbrodt added the enhancement New feature or request label May 27, 2024
@johntruckenbrodt johntruckenbrodt changed the title use right-hand rule for STAC GeoJSON geometry definition use right-hand rule for metadata geometry definitions Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant