On jeudi 19 novembre 2020 23:42:59 CET Jorge Gustavo Rocha wrote:
> Hi,
>
> Only now, based on Even's answer, I was able to find the proper
> documentation. My fault! I was searching using uppercase and git grep
> "_OGR_GEOMETRY_" was returning nothing.
>
> Just an update regarding the documentat
Hi,
Only now, based on Even's answer, I was able to find the proper
documentation. My fault! I was searching using uppercase and git grep
"_OGR_GEOMETRY_" was returning nothing.
Just an update regarding the documentation:
1) OGR_GEOMETRY is well documented at
https://gdal.org/user/ogr_sql_dialec
Hi Even,
Thanks for the feedback. The difference you mentioned is well understood
with the example:
-sql 'select OGR_GEOMETRY, "_OGR_GEOMETRY_" from layer'
I get exactly what is expected from both fields:
POLYGON | POLYGON(...)
POLYGON | POLYGON(...)
It would be nice to allow "_OGR_GEOMETRY_"
Jorge,
> To get only the geometry column from a shapefile, I can do:
>
> ogrinfo cidade.shp -sql "select OGR_GEOMETRY from cidade"
This is a bit a misnomer: OGR_GEOMETRY is a special keyword to get the
geometry *type* of a geometry ("POLYGON", "POINT", "LINESTRING"), not the
geometry itself. F
Hi Jeff,
I've updated the wiki, adding a couple of sections about compiling GDAL 2.3+
(requires VC14+) and providing links to the conda recipes that I used. I hope
they are useful to anyone else that needs FileGDB write support on Windows.
https://trac.osgeo.org/gdal/wiki/FileGDB
Thanks,
Jon
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
ERR