[gdal-dev] ogr2ogr and RFC41

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Thu Jun 12 01:02:51 PDT 2014


Martin Landa <landa.martin <at> gmail.com> writes:

> 
> 2014-06-11 23:45 GMT+02:00 Even Rouault <even.rouault <at> mines-paris.org>:
> > source geometry fields, you can write a SQL clause " SELECT geomfield1,
> > geomfield2, other_attr FROM your_layer"
> 
> yes, but it's not really user-friendly (when more attributes are
> listed). Probably `--geomfield` could be also used to select geometry
> column when destination data source doesn't support RFC-41, what do
> you think?

As a workaround I would try what happens with 
-sql "SELECT geometry2, * FROM your_layer"

It may lead to desired result (especially selected geometry written into
target, second occasion of the same and other geometries skipped) with
minimal writing but I have not tried it myself.

-Jukka Rahkonen-



More information about the gdal-dev mailing list