pub fn parse_shapefile(
shp_bytes: &[u8],
) -> Result<FeatureCollection, ShapefileError>Expand description
Parse Shapefile bytes (.shp content) into a FeatureCollection.
This reads the .shp binary data directly via shapefile::ShapeReader.
DBF attribute data is not parsed – all features will have empty
properties.
Supported shape types: Point, PolyLine, Polygon, MultiPoint, PointZ, PolyLineZ, PolygonZ, MultiPointZ.
§Errors
Returns ShapefileError::Read if the binary data is malformed,
or ShapefileError::UnsupportedShape for shape types that cannot
be mapped to the engine’s geometry model.