TransWikia.com

OGRInfo On Shapefile = zero length delimited identifier error

Geographic Information Systems Asked on February 22, 2021

I have an ESRI Shapefile that I can open in ArcMap and QGIS and show the attributes fine. However when I try to load to PostGIS using ogr2ogr I get an error saying

ERROR 1: ERROR:  zero-length delimited identifier at or near """"
LINE 1: ALTER TABLE "attribute" ADD COLUMN "" VARCHAR(5)

I used ogrinfo -al File.shp and it lists all 20 records fine but none of the attributes seem to come through.

I have opened the dbf file in Excel and its fine and have even parsed the dbf header using Python and it is exactly the same header output as a previous shapefile which correctly loads.

Why is ogr2ogr having an issue parsing the file?

One Answer

I don' know PostGIS, but if it reads fine in other formats, that suggests the ogr2ogr is the problem. If postGIS can read some other format, or do something like shp2ogr, that seems worth a try.

Answered by Mox on February 22, 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