Expand description
Zero-Copy reading and writing of geospatial data.
GeoZero defines an API for reading geospatial data formats without an intermediate representation. It defines traits which can be implemented to read and convert to an arbitrary format or render geometries directly.
Supported geometry types:
- OGC Simple Features
- Circular arcs as defined by SQL-MM Part 3
- TIN
Supported dimensions: X, Y, Z, M, T
Available implementations:
Format conversion overview
GeozeroGeometry | Dimensions | GeozeroDatasource | Geometry Conversion | GeomProcessor | |
---|---|---|---|---|---|
geo-types | geo_types::Geometry<f64> | XY | - | ToGeo | GeoWriter |
GeoJSON | GeoJson, GeoJsonString | XYZ | GeoJsonReader, GeoJson | ToJson | GeoJsonWriter |
GDAL | gdal::vector::Geometry | XYZ | - | [ToGdal] | GdalWriter |
GEOS | geos::Geometry | XYZ | - | ToGeos | GeosWriter |
MVT | mvt::tile::Feature | XY | mvt::tile::Layer | ToMvt | MvtWriter |
SVG | - | XY | - | ToSvg | SvgWriter |
WKB | Wkb, Ewkb, GpkgWkb | XYZM | - | ToWkb | WkbWriter |
WKT | wkt::WktStr, wkt::WktString | XYZM | wkt::WktReader, wkt::WktStr, wkt::WktString | ToWkt | WktWriter |
Modules
Error and Result types.
geo-types conversions.
GeoJSON conversions.
GEOS conversions.
Geopackage geometry type encoding/decoding.
MVT conversions.
PostGIS geometry type encoding/decoding.
SVG conversions.
Well-Known Binary (WKB) conversions.
Well-Known Text (WKT) conversions.
Macros
impl FromSql
for geometry type implementing FromWkb
impl ToSql
for geometry type implementing GeozeroGeometry
impl sqlx::decode::Decode
for geometry type implementing FromWkb
impl sqlx::decode::Decode
for geometry type implementing GeozeroGeometry
impl sqlx::Type
for geometry type
impl sqlx::decode::Decode
for geometry type implementing FromWkb
impl sqlx::decode::Decode
for geometry type implementing GeozeroGeometry
impl sqlx::Type
for geometry type
Structs
Dimensions requested for processing
Empty processor implementation
Enums
Feature property value.
Traits
Feature processing API
Feature processing trait
Feature properties processing API
Geometry processing trait
Datasource feature consumer trait.
Geometry processing trait.
Consume features as GeoJSON.
Consume features as SVG.
Feature property processing trait.
Get property value as Rust type.
Convert to geo-types Geometry.
Convert to GEOS geometry.
Convert to GeoJSON.
Convert to MVT geometry.
Convert to SVG.
Convert to WKB.
Convert to WKT.