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: ge...@osgeopt.pt
https://www.osgeopt.pt/

Próximo evento: SASIG 2017, 20 a 22 de novembro, Porto
Mais informações: http://osgeopt.pt/sasig2017/
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to