[gdal-dev] shp-gpx conversion with ogr2ogr
flavio rigolon
flavio.rigolon at gmail.com
Mon Jun 8 04:58:26 EDT 2009
Hi all,
I'm trying to convert a SHP file to GPX via ogr2ogr.
The "default" conversion works well:
<http://www.gdal.org/ogr/drv_gpx.html>$ ogr2ogr -f GPX nome_file.gpx
nome_file.shp
I'd like to mantain two attributes and I tried the option
GPX_USE_EXTENSIONS=YES with sql instruction to rename the interested fields:
$ ogr2ogr -f GPX -dsco GPX_USE_EXTENSION=YES -sql "SELECT NOME AS name, CAT
AS desc FROM source_layer" nome_file.gpx nome_file.shp
but I get this error:
--------------------------------
ERROR 1: SQL: Missing comma after column NOME in SELECT statement
--------------------------------
It seems that I forgot a comma but this command is the same in the
documentation.
I've checked the syntax with the help of this doc:
http://www.gdal.org/ogr/drv_gpx.html
http://www.gdal.org/ogr/drv_vrt.html
but I don't understand where is the error.
Does anibody have similar experience?
Thancks a lot for any hint.
flavio
--
io uso Debian GNU/Linux
user #413018 counter.li.org
<<usiamo formati aperti!>>
http://it.wikipedia.org/wiki/Formato_aperto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090608/3b3961b3/attachment.html
More information about the gdal-dev
mailing list