[gdal-dev] Error in fread() reading object from shp file
Even Rouault
even.rouault at spatialys.com
Tue Oct 30 10:33:36 PDT 2018
Pedro,
There is a corruption in the .shp file. The file size (given as a number of 2-
byte words) at offset 24 to 27 is currently 268, which is plain wrong. The
value should be 994732 / 2 = 497366 = 00 07 96 D6 in big endian order. Once
patched, the shapefile can be read.
That said, I've just modified the code to not be dependent on the correctness
of that field.
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list