Skip to main content

Crate hfx_core

Crate hfx_core 

Source
Expand description

Shared types and validation primitives for HFX artifacts.

This crate defines the canonical in-memory representation of HFX domain concepts. All types enforce their invariants at construction time (“parse, don’t validate”). No I/O — deserialization from Parquet/JSON/GeoTIFF is the responsibility of downstream crates.

Re-exports§

pub use area::AreaKm2;
pub use area::MeasureError;
pub use area::Weight;
pub use auxiliary::AuxiliaryDecl;
pub use auxiliary::AuxiliaryError;
pub use auxiliary::AuxiliarySchemaId;
pub use auxiliary::BlessedAuxSchema;
pub use catchment::CatchmentUnit;
pub use geo::BoundingBox;
pub use geo::GeoError;
pub use geo::Latitude;
pub use geo::Longitude;
pub use geo::OutletCoord;
pub use geo::WkbGeometry;
pub use graph::AdjacencyRow;
pub use graph::DrainageGraph;
pub use graph::GraphError;
pub use id::IdError;
pub use id::SnapId;
pub use id::UnitId;
pub use level::Level;
pub use level::LevelError;
pub use manifest::Crs;
pub use manifest::FormatVersion;
pub use manifest::Manifest;
pub use manifest::ManifestBuilder;
pub use manifest::ManifestError;
pub use manifest::Topology;
pub use manifest::UnitCount;
pub use manifest::UpAreaAvailability;
pub use raster::FlowDirEncoding;
pub use raster::FlowDirEncodingError;
pub use snap::SnapError;
pub use snap::SnapTarget;
pub use snap::StemRole;

Modules§

area
Area and weight measurement types.
auxiliary
Manifest-declared auxiliary artifact types.
catchment
Drainage-unit domain type.
geo
Spatial primitives for WGS84 coordinates, bounding boxes, and WKB geometry.
graph
Upstream adjacency graph types.
id
Drainage unit and snap target identity types.
level
Dataset-local drainage-unit level type.
manifest
HFX dataset manifest types.
raster
Raster-related domain types.
snap
Snap target domain types.

Traits§

HasBbox
Trait for types that carry a spatial bounding box.
HasUnitId
Trait for types identified by a UnitId.