TransWikia.com

OGR shapefile output fails - Error 1 in psSHP->sHooks.fSeek()

Geographic Information Systems Asked by Jan Šimbera on June 20, 2021

When trying to use ogr2ogr to convert to ESRI Shapefile format, I get the following error consistently across different files:

ERROR 1: Error in psSHP->sHooks.FSeek() while writing object to .shp file.

The error shows both from command line (calling the program both through OSGeo4W shell and directly) and QGIS Save As... dialog, irrespectively of the input format (tried OpenFileGDB, GeoJSON and SpatiaLite) or the CRS. I have plenty of disk space and write access to the target folder.

I have come across some bug reports concerning this but they seemed to deal with files larger than 2 GB which is not my case (around 1 MB in GeoJSON). This bug seemed to agree with the case but was closed without conclusion. I also tried a related solution from here but to no avail (QGIS starts normally).

I am using an OSGeo4W Express Desktop Install (default setup) with QGIS 2.16.2 and GDAL 2.1.1 on Windows 7 Enterprise 64bit. I have tried to reinstall the whole bundle multiple times, deleting the leftover folder.

Any ideas how to solve it?

One Answer

The issue was most likely caused by corporate security software blocking the write of more than one file because shapefiles consist of multiple files.

Answered by Jan Šimbera on June 20, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP