Skip to content

Fix polygon winding and antimeridian crossing in navPlace - #110

Merged
thatbudakguy merged 1 commit into
navplace-idsfrom
navplace-polygons
Nov 12, 2026
Merged

thatbudakguy merged 1 commit into
navplace-idsfrom
navplace-polygons

Conversation

@thatbudakguy

Copy link
Copy Markdown
Collaborator

These are two persistent issues that crop up in bounding box
implementations. GeoJSON doesn't allow you to have a box that
crosses the antimeridian because it'll get represented incorrectly;
instead it needs to become a MultiPolygon with one "piece" on each
side. Also, you need to "wind" polygons in the correct order,
otherwise some consumers (notably Solr) will interpret the box
as its inverse/"outside".

These are two persistent issues that crop up in bounding box
implementations. GeoJSON doesn't allow you to have a box that
crosses the antimeridian because it'll get represented incorrectly;
instead it needs to become a MultiPolygon with one "piece" on each
side. Also, you need to "wind" polygons in the correct order,
otherwise some consumers (notably Solr) will interpret the box
as its inverse/"outside".
@jcoyne

jcoyne commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

How are we fixing the winding here? what if they want the inverse?

@thatbudakguy
thatbudakguy merged commit 534602b into main Nov 12, 2026
3 checks passed
@thatbudakguy
thatbudakguy deleted the navplace-polygons branch November 12, 2026 20:31
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

Successfully merging this pull request may close these issues.

2 participants