We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Per updated GeoJSON spec: https://datatracker.ietf.org/doc/html/rfc7946#section-3.1.6
Polygon specification now indicates:
A linear ring MUST follow the right-hand rule with respect to the area it bounds, i.e., exterior rings are counterclockwise, and holes are clockwise.
Problem: mercantile utilizes clockwise pattern which is the inverse of specified counter-clockwise pattern for polygon feature creation.
mercantile
Impacted LoC:
mercantile/mercantile/__init__.py
Line 835 in fe3762d
Short term workaround for my use case:
def as_geom(qk: str): t = mercantile.quadkey_to_tile(qk) west, south, east, north = mercantile.bounds(t) return { "type": "Polygon", "coordinates": [[ [east, north], [west, north], [west, south], [east, south], [east, north], ]], }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Per updated GeoJSON spec: https://datatracker.ietf.org/doc/html/rfc7946#section-3.1.6
Polygon specification now indicates:
Problem:
mercantile
utilizes clockwise pattern which is the inverse of specified counter-clockwise pattern for polygon feature creation.Impacted LoC:
mercantile/mercantile/__init__.py
Line 835 in fe3762d
Short term workaround for my use case:
The text was updated successfully, but these errors were encountered: