[gdal-dev] Fail to open DBF without SHAPE_RESTORE_SHX options

vincent.loppin vincent.loppin at diginext.fr
Wed May 15 03:02:16 PDT 2019


Hello,

This mail is related to https://github.com/OSGeo/gdal/issues/1525

Quick recall :

We try to open DBF file using shapefile driver, but in our dataset we have empty SHP & SHX files (provided by customers, so we can't remove it).
To be able to open it, we use the SHAPE_RESTORE_SHX option to bypass shp reading.

This option usage sounds to be a bit dirty workaround, especially when there are a parameter bForceSingleFileDataSource   on OGRShapeDataSource::Open() method.

https://github.com/OSGeo/gdal/blob/0d7d762895f268d0c3ddaed5ddac3605c727e501/gdal/ogr/ogrsf_frmts/shape/ogrshapedatasource.cpp#L150

Maybe an open option could help us to deal with this case ? (FORCE_SINGLE_FILE_DATA_SOURCE)

Thanks,

--
Vincent Loppin
VirtualGeo SDK Technical Expert
DIGINEXT - Virtual Reality Division
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190515/0c4061a4/attachment.html>


More information about the gdal-dev mailing list