pub struct ShapeFile {
pub kind: String,
pub name: String,
pub crs: Option<Value>,
pub features: Vec<Feature>,
}Expand description
A GeoFRED / Maps shape file (the geofred/shapes/file endpoint) — the region
boundary polygons for a ShapeType, as a GeoJSON
FeatureCollection.
This crate transports GeoJSON without interpreting it (ADR-0025):
per-feature properties vary by shape type and the geometry coordinates are
in GeoFRED’s own display projection (integer pixel-like pairs, not lat/lon),
so those parts are carried as serde_json::Value rather than modelled down
to the polygon. A consumer that needs typed, projected geometry can re-parse
the geometry with a dedicated GeoJSON crate. The type/crs fields are kept
so the value round-trips as valid GeoJSON.
Fields§
§kind: StringThe GeoJSON object type — "FeatureCollection".
name: StringFRED’s name for the shape set, e.g. "state_bea_region".
crs: Option<Value>The GeoJSON coordinate reference system, carried verbatim (kept for a faithful round-trip; absent for shapes that omit it).
features: Vec<Feature>The region features — one boundary per region.