Module geodesy.geodesic_polygon

Measure the perimeter and enclosed signed area of a geographic polygon.

Add the polygon's vertices in order, then compute the result. Each edge follows the shortest geodesic between consecutive positions, including the closing edge from the last vertex to the first. The module measures the outline; it does not check ring validity, holes, containment or overlays.

Polygon edges are shortest geodesics between consecutive geographic vertices. The closing edge from the last vertex back to the first is included when results are computed. Signed area is positive for counterclockwise traversal and canonicalized to (-A/2, A/2], where A is the full ellipsoid surface area. Self-intersections are accumulated algebraically.

Date

October 5, 2026

Structs

NameDescription
GeodesicPolygonAccumulator Build a geographic polygon one vertex at a time and measure it.
GeodesicPolygonResult Perimeter and signed area of the polygon formed by the supplied vertices.