geozero-shp 0.2.0

Shapefile reader with GeoZero API.
Documentation

GeoZero Shapefile driver

Reading Shapefiles with GeoZero API.

Features:

  • Read support for OGC simple feature types
  • Convert to GeoJSON, WKB (PostGIS/GeoPackage), WKT, GEOS, GDAL formats and more
  • Support for Multipatch types
  • Read spatial index
  • Read projection files

For writing Shapefiles either use shapefile-rs or the GDAL driver of GeoZero Core

Originally based on shapefile-rs from Thomas Montaigu.

Usage example

use geozero_core::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();