On lundi 23 juillet 2018 22:46:26 CEST Martin Landa wrote: > Hi, > > I have problem with reading some files provided by Czech State > Administration of Land Surveying and Cadastre in VFR format (supported > by GML driver). Some files seems to be incorrectly compressed. > [...] > NO features are printed. gzip says "unexpected end of file" and > refuses to extract the file. 7zip (and other programs) on Windows > reports similar error, but file is extracted. I am discussing issue > with the provider. By chance, do you have any tip how to read such > broken files by GDAL?
The corruption in the compressed stream seems to occur just after the end of the closing XML tag, so indeed the file can be read. I've improved robustness of /vsigzip/ per https://github.com/OSGeo/gdal/commit/d57006d94d94f8d365a20cbf14a0241f906f1706 Even -- Spatialys - Geospatial professional services http://www.spatialys.com _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
