SHP output fails - Error in psSHP->sHooks.FSeek()
|Reported by:||simberaj||Owned by:||warmerdam|
|Severity:||major||Keywords:||shp output ogr|
Shapefile output does not work for me when using GDAL 2.1.1 from the QGIS/OSGeo4W bundle on my Windows 7 Enterprise 64bit.
Whenever I try to use ogr2ogr or invoke shapefile output from the QGIS GUI, the following error appears:
Error in psSHP->sHooks.FSeek() while writing object to .shp file.
An empty shapefile containing only the headers is produced.
The error shows irrespective of:
- way of invocation (command line through OSGeo4W shell or directly, QGIS Save As... dialog)
- input format (tried OpenFileGDB, GeoJSON and SpatiaLite) or geometry type (tried Point and LineString)
- the CRS
- 32bit or 64bit installation (tried OSGeo4W 32bit and 64bit bundles and QGIS standalone installer)
- I have plenty of disk space and write access to the target folder.
The GDAL_DATA env variable as it appears from the system is C:\Program Files\PostgreSQL\9.5\gdal-data. There is PostgreSQL installed on the same system with a PostGIS enabled database.
Outputs to other formats, such as GeoJSON, work fine.
I am enclosing a GeoJSON file that is able to trigger the failure.