tmontaigu / shapefile-rs

Rust library to read & write shapefiles
MIT License
59 stars 19 forks source link

Add `geo-traits` reader implementation #38

Open kylebarron opened 2 weeks ago

kylebarron commented 2 weeks ago

We have a new core geo crate: geo-traits! This enables zero-copy vector data interchange throughout the GeoRust ecosystem.

This means that any library out there that accepts geo-traits input will just work with shapefile geometries.

This PR implements these traits on new-types around shapefile geometry types.

Change list

Questions

kylebarron commented 2 weeks ago

I don"t know if checking the NO_DATA for M values is worth doing, maybe we could let that thing to the user (but then it's not clear if that's a good idea)

I think the semantics here are that data producers are expected to produce valid data, so I think we should keep the check for M values.