You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a polygon has coordinates that are on both sides of -180 or 180, then the polygon crosses the antimeridian.
When coordinates are on both ends of the antimeridian, they are always meant to connect by the shortest distance which is across the antimeridian, and not across the world the long way.
A polygon will never span the entire globe in the longitudinal direction (more than 360 degrees)
From that we can say: If the distance between any two coordinates is greater than 180 degrees, then it has been crossed. This is true for the exterior ring of a polygon, and any interior ring (hole).
Proper split in QGIS:
Proper split in geojson.io:
SeaSketch Behavior
When drawing in SeaSketch using mapbox-gl-js, crossing the antimeridian in all cases I've found produces longitude values greater than 180 (right side):
[
186.381385397,
-14.390078131
]
And there will be longitude values less than 180 (left side):
[
170.387412007,
-14.240489787
]
Requirements
Antimeridian handling should be built-in. No need to enable for a project.
Always split vector geometries that cross the antimeridian into pieces
Vector datasources should be split on import (use -wrapdateline option)
Sketches should be split at runtime in geoprocessing functions using splitSketchAntimeridian(). This will also clean coordinates to be within -180 to 180, as well as the bounding box property.
The bounding box of the split sketch should be used to fetch features for other datasources
Upgrade fiji-reports to test this functionality
The text was updated successfully, but these errors were encountered:
Background can be found here:
Assumptions:
From that we can say:
If the distance between any two coordinates is greater than 180 degrees, then it has been crossed
. This is true for the exterior ring of a polygon, and any interior ring (hole).Proper split in QGIS:

Proper split in geojson.io:

SeaSketch Behavior
When drawing in SeaSketch using mapbox-gl-js, crossing the antimeridian in all cases I've found produces longitude values greater than 180 (right side):
And there will be longitude values less than 180 (left side):
Requirements
splitSketchAntimeridian()
. This will also clean coordinates to be within -180 to 180, as well as the bounding box property.The text was updated successfully, but these errors were encountered: