- Bumped dbase to 0.5.0
- Bumped dbase to 0.4.0
- Added
shape_count
to the reader - Bumped dbase to 0.3.0 to bring code page support
- Fixed: Use the .shx (index file, if present) when iterating over the shapes contained in the file, as some files may have padding bytes between shapes.
- Changed, the
Reader::with_shx
now can work when the source for the shx file can is a different type than the shp source type (can mix io::Cursor and fs::File for example). - Changed the
Reader
to be able to use different type for the sources of the dbase and shape file (e.g. dbase source could be a fs::File whil the shape is a io::Cursor)
- Updated dbase dependency to 0.2.x
- Added
Writer::write_shape
to write one shape at a time - Changed
Write<T>
theT
now must implementstd::io::Seek
andstd::io::Write
.std::fs::File
andstd::io::Cursor
are validT
. - Changed
ShapeWriter::write_shapes
to take as input any type that implementsIntoIterator<Item=&ShapeType>
. - Fixed
ShapeType::Multipatch
wasn't considered as a type with Z coordinates. - Added a
ShapeReader
&ShapeWriter
struct that only read/write the .shp and .shx - Changed the
Reader
, it now requires the .dbf to exist - Changed the
Writer
, it requires more information to be able to write the .dbf file (Examples are in the docs) - Changed the
Reader
iter_*
&read
to take&mut self
instead ofself
- Changed
shapefile::read
now returns aVec<(Shape, Record)>
shapefile::read_shapes
returnsVec<Shape>
- Bumped geo-types optional dependency to allow up to 0.8.0
- Fixed a problem in the Multipatch/Polygon/Polyline::with_parts ctor which resulted in wrong parts creation (Github PR #10)
- Fixed another index file bug (Github PR #8)
- Fixed a bug in the Polygon::with_parts that would result in inner ring points being reordered to outer ring point order (Github PR #12)
- Added #[derive(Debug, PartialEq, Clone)] for Polylines, Polygons, Multipoints
- Fix index file (.shx) that was incorrect (Github issue #6)
- Fix reading PointZ shape where the 'M' value is not there at all
- PointM, PointZ 'std::fmt::Display' implementation now prints 'NO_DATA' when the value is NO_DATA (instead of printing the f64 value)
- Implement MultipointShape for Point, PointM, PointZ