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 | |
---|---|---|---|---|---|
CSV | csv::Csv, csv::CsvString | XY | - | ProcessToCsv | CsvWriter |
GDAL | gdal::vector::Geometry | XYZ | - | ToGdal | GdalWriter |
geo-types | geo_types::Geometry<f64> | XY | - | ToGeo | GeoWriter |
GeoJSON | GeoJson, GeoJsonString | XYZ | GeoJsonReader, GeoJson | ToJson | GeoJsonWriter |
GeoJSON Lines | XYZ | GeoJsonLineReader | GeoJsonLineWriter | ||
GEOS | geos::Geometry | XYZ | - | ToGeos | GeosWriter |
GPX | XY | GpxReader | |||
MVT | mvt::tile::Feature | XY | mvt::tile::Layer | ToMvt | MvtWriter |
SVG | - | XY | - | ToSvg | SvgWriter |
WKB | Wkb, Ewkb, GpkgWkb, SpatiaLiteWkb, MySQL | XYZM | - | ToWkb | WkbWriter |
WKT | wkt::WktStr, wkt::WktString, wkt::EwktStr, wkt::EwktString | XYZM | wkt::WktReader, wkt::WktStr, wkt::WktString, wkt::EwktStr, wkt::EwktString | ToWkt | WktWriter |
Modules§
- CSV conversions.
- Error and Result types.
- GDAL conversions.
- 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 implementingFromWkb
- impl
ToSql
for geometry type implementingGeozeroGeometry
- impl
sqlx::decode::Decode
for geometry type implementingFromWkb
- impl
sqlx::decode::Decode
for geometry type implementingGeozeroGeometry
- impl
sqlx::Type
for geometry type - impl
sqlx::decode::Decode
for geometry type implementingFromWkb
- impl
sqlx::decode::Decode
for geometry type implementingGeozeroGeometry
- impl
sqlx::Type
andPgHasArrayType
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 into CSV
- Consume features as GeoJSON.
- Consume features as SVG.
- Feature property processing trait.
- Get property value as Rust type.
- Convert to GDAL geometry.
- 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.