Re: supplying SHAPE_RESTORE_SHX=YES to fiona.open


René Buffat
 

You should be able to pass configuration options to GDAL using fiona.ENV: https://fiona.readthedocs.io/en/stable/manual.html#ogr-configuration-options

According to Wikipedia, at least the shp, shx and dbf files are mandatory: https://en.wikipedia.org/wiki/Shapefile#Shapefile_shape_index_format_(.shx)

GDAL, respectively Fiona is able to read dxf files directly: https://gdal.org/drivers/vector/dxf.html As DXF is not a standard GIS file format, it's probably best to try out what works better.

lg rene

Join main@fiona.groups.io to automatically receive all group messages.