NetTopologySuite / NetTopologySuite.IO.ShapeFile

The ShapeFile IO module for NTS.
33 stars 25 forks source link

Fixed issue when writting Features with ShapefileDataWriter. #83

Closed kristofdegrave closed 2 years ago

kristofdegrave commented 2 years ago

When writting Features Using the ShapefileDataWriter, the file is corrupt when using ArcMap of Qgis.

There are 2 reasons for this:

  1. No EndOfDbf byte is written to the dbf file
  2. The number of records aren't updated in the header.

The PR here fixes both and is inspired by the static WriteFeatures of the ShapefileWriter

@FObermaier @airbreather I know you stopped the maintenance of this package in favor of the new implementation, but since this is still in development and I really need this fix, I would love to see this in a new Stable release.