In my QGIS project of American railroads, using USGS Base Topo Layer and shapefiles giving railroad details as of 2015, I have used the Python-3 pyshp library to edit the dbf database, adding some fields.
After writing out the edited shapefile with pyshp.Writer QGIS rejects my new shapefile as invalid, without any pointer as to the reason of rejection.
How can I check the integrity of a processed shapefile, preferably with Python ?
I use QGIS-3.14.11-Madeira, pyshp-1.1.12 and Python-3.6
ogrinfo
but if QGIS says no then it is probably broken. OGR might give more error messages though – Ian Turton♦ Jan 27 at 16:03