Skip to main content

Crate ezu_features

Crate ezu_features 

Source
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:

  • mvt — Mapbox Vector Tile protobuf decode
  • geojson — GeoJSON FeatureCollection parse

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, LineString as Vec<(i32, i32)>, Point as (i32, i32)).

Structs§

Feature
One decoded feature: geometry plus a properties bag.
FeatureLayer
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 in ezu-paint read it via the unified AssetLoader under tile.<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.