[gdal-dev] Geometry column name: Field 'OGR_GEOMETRY' not found in source layer

Jorge Gustavo Rocha jgr at osgeopt.pt
Thu Nov 19 08:11:37 PST 2020


Hi devs,

To get only the geometry column from a shapefile, I can do:

ogrinfo cidade.shp -sql "select OGR_GEOMETRY from cidade"

But this column name is not allowed in the -select option on ogr2ogr:

ogr2ogr -overwrite -skipfailures -update PG:service=estarreja cidade.shp
-select OGR_GEOMETRY

ERROR 1: Field 'OGR_GEOMETRY' not found in source layer.

Shouldn't OGR_GEOMETRY be allowed in -select?

Regards,

Jorge
-- 
OSGeo Portugal
NIF: 509588190
email: geral at osgeopt.pt
https://www.osgeopt.pt/

Próximo evento: SASIG 2017, 20 a 22 de novembro, Porto
Mais informações: http://osgeopt.pt/sasig2017/


More information about the gdal-dev mailing list