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

Bounding boxes can have xmin greater than xmax if they cross the antimeridian #122

Open
gadomski opened this issue May 26, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@gadomski
Copy link
Member

The validation at

if xmax < xmin:
raise ValueError(
"Maximum longitude must be greater than minimum longitude"
)
is too strict. According to the GeoJSON spec, bboxes's first element should be larger than their third element if they cross the antimeridian: https://datatracker.ietf.org/doc/html/rfc7946#section-5.2.

I came across this issue due to a failing test in stac-fastapi-sqlalchemy on this geometry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant