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
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
