tmontaigu / shapefile-rs

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

Refactor all multipart shapes #14

Closed tmontaigu closed 4 years ago

tmontaigu commented 4 years ago

Changes:

The way shapes with multiple parts (polylines, polygons, multipatch) shapes are represented has changed from being the combination of a Vec<PointType>+ Vec<i32> (parts indices) to being Vec<Vec<T>>

Add a PolygonRing enum to be able to more easily know if a ring is an outer or inner ring. Changed the Polygons type to use a Vec<PolygonRing<PointType>

Changed Multipatch shape to follow the same idea, by adding a Patch enum: The Multipatch shape uses now a Vec<Patch>

Document a bit more what is checked and what is not

Still todo: