Expand description
GIS feature parsing for ezu.
Parses tile / feature formats into a flat, owned representation that downstream paint code can iterate over without implementing format-specific traits. Remote fetching is intentionally not in scope — input is always raw bytes / strings from the caller.
Submodules:
All decoders produce the same shared Feature / Geometry /
Polygon / Value types defined at the crate root.
Modules§
- geojson
- GeoJSON parsing.
- mvt
- MVT (Mapbox Vector Tile) decoding.
- ops
- Pure-function geometry operations on the crate’s owned types
(
Polygon,LineStringasVec<(i32, i32)>,Pointas(i32, i32)).
Structs§
- Feature
- One decoded feature: geometry plus a properties bag.
- Feature
Layer - A single tile-local layer of decoded features. The producer (MVT
decoder, GeoJSON loader, host glue, …) normalizes coordinates into
[0, extent]with y-down before constructing this. Consumers inezu-paintread it via the unifiedAssetLoaderundertile.<name>bindings. - Geometry
- Geometry in source-specific tile-local coordinates. For MVT this is
[0, extent]with y-down; for GeoJSON it’s whatever the caller chose to project into before parsing. - Polygon
- A polygon with one exterior ring and zero or more interior holes.
Enums§
- Value
- Untyped property value carried alongside a feature.