Registry / utility / geozero

geozero

JSON →
library0.15.1rscratesunverified

Zero-copy reading and writing of geospatial data in WKT/WKB, GeoJSON, MVT, GDAL, and other formats.

# Cargo.toml [dependencies] geozero = "0.15.1"
INSTALL
IMPORT
SIG · GEOZERO
G
geozero
utilityrustv0.15.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GeoJsonWriter
use geozero::geojson::GeoJsonWriter;

Convert a WKT string to GeoJSON using zero-copy reading.

use geozero::geojson::GeoJsonWriter; use geozero::ToGeo; fn main() -> geozero::error::Result<()> { let wkt = "POINT (1 2)"; let mut output = Vec::new(); let mut writer = GeoJsonWriter::new(&mut output); geozero::wkt::WktStr(wkt).to_geo(&mut writer)?; println!("GeoJSON: {}", String::from_utf8_lossy(&output)); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.15.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
geozero — cargo add geozero · libregistry