Skip to main content

Module geometry

Module geometry 

Source
Expand description

Turns parsed GeoJSON geometries into concrete shapefile shapes.

The shapefile format has no single “geometry” type — each dimensionality is a separate Rust type — so the conversion is generic over the point type and the caller picks the concrete one from the resolved Dimension.

Enums§

Dimension
Which ordinates end up in the output file.

Traits§

FromPosition
Builds a concrete shapefile point from a GeoJSON position.
ShapePoint
The trait soup the shapefile constructors require of a point type.

Functions§

to_multipoint
to_point
A GeoJSON geometry that should have been a point.
to_polygon
to_polyline