Crates.io | geozero-shp |
lib.rs | geozero-shp |
version | 0.5.1 |
source | src |
created_at | 2021-01-05 23:08:47.232674 |
updated_at | 2024-09-26 08:32:03.611182 |
description | WARNING: The shp driver is now included in geozero. |
homepage | https://github.com/georust/geozero |
repository | https://github.com/georust/geozero |
max_upload_size | |
id | 332498 |
size | 96,187 |
DEPRECATED: The shp driver is now included in
geozero
.
Reading Shapefiles with GeoZero API.
Features:
For writing Shapefiles either use shapefile-rs or the GDAL driver of GeoZero
Originally based on shapefile-rs from Thomas Montaigu.
use geozero::geojson::GeoJsonWriter;
let reader = geozero_shp::Reader::from_path("poly.shp")?;
let mut json: Vec<u8> = Vec::new();
let cnt = reader.iter_features(GeoJsonWriter::new(&mut json))?.count();