Skip to main content

Module geometry

Module geometry 

Source
Expand description

Simple-Features geometry tree with optional Z/M ordinates.

The shape is deliberately close to OGC Simple Features + WKB so writers (WKB, GeoJSON, Shapefile, GeoParquet) reduce to direct tree walks.

Structs§

Coord
A single coordinate. z and m are Options so we can distinguish “this geometry has no Z dimension” from “Z is invalid”. We do not use NaN as a sentinel — that’s a GDB-specific quirk handled inside its reader.
LineString
Polygon
A polygon: one exterior ring plus zero or more interior rings (holes).

Enums§

Geometry
The geometry tree. Marked #[non_exhaustive] so future SemVer-minor releases can add variants (curves, surfaces, Z/M-bearing variants once the IR grows past 2D).
GeometryType
Discriminant of Geometry. Used in Geometry::Empty(_) to preserve the type of a typed-empty geometry (WKB requires this).