tmontaigu / shapefile-rs

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

Update dbase-rs to 0.1.1 #20

Closed tmontaigu closed 3 years ago

tmontaigu commented 3 years ago

The various iter_shapes_as iter_shapes_and_records_as now take &mut self instead of self to be able to use dbase::RecordIterator.

Move the purely shapefile related reader in a new ShapeReader struct and use it in the Reader struct. ShapeReader may be useful for projects wich don't care about dbf

Same thing for writing `ShapeWriter is a new struct that handle the writing of the shp and shx.

The Reader has a handle to a ShapeWriter and dbase::TableWriter.

Things to decide:

TODO:

Writing shapes / records one by one as oppposed to all at once should be added in another pr

Addresses #16