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
{{ message }}
Repository navigation
Rings through both poles with a full turn can measure more than the globe, silently #1641
A degenerate polygon ring that passes through both poles and has a full-turn (-180° to 180°) edge, such as [(-180,90),(180,90),(-90,-90),(90,-80)], can wind past the whole surface. geodesic_ring_area_m2 and wgs84_ring_perimeter_area_m2 then return more than the globe's area, with no notice. This was already the case before #1632. That PR keeps the result the same from every starting vertex but does not change its size.
Such a ring bounds no single region, because closing its winding at either pole gives areas a whole globe apart. Per "Never silent", the callers should report these rings rather than store a number: Spatial Join (crates/analysis/src/join.rs), Calculate Geometry Attributes (crates/analysis/src/tools.rs), $area and the attribute table (crates/data/src/geometry.rs), and the Measure panel. Options are a geom API that flags the ring, which callers count into one notice, or making it an error.
Activity
fix(geom): drop the silent globe reduction of rings through both poles
Geometry: tell antimeridian seams from full turns in ring area and pe…
Geometry: refuse ambiguous polar area measurements (opengeos#1666)