Hi all,<br> I&#39;m trying to convert a SHP file to GPX via ogr2ogr.<br><br>The &quot;default&quot; conversion works well:<br><br><a href="http://www.gdal.org/ogr/drv_gpx.html" target="_blank"></a>$ ogr2ogr -f GPX nome_file.gpx nome_file.shp<br>
<br>I&#39;d like to mantain two attributes and I tried the option GPX_USE_EXTENSIONS=YES with sql instruction to rename the interested fields:<br>
<br>$ ogr2ogr -f GPX -dsco GPX_USE_EXTENSION=YES -sql &quot;SELECT NOME AS
name, CAT AS desc FROM source_layer&quot; nome_file.gpx nome_file.shp<br><br>but I get this error:<br>--------------------------------<br><div id=":169" class="ii gt">ERROR 1: SQL: Missing comma after column NOME in SELECT statement<br clear="all">

--------------------------------<br>It seems that I forgot a comma but this command is the same in the documentation.<br><br>I&#39;ve checked the syntax with the help of this doc:<br><a href="http://www.gdal.org/ogr/drv_gpx.html" target="_blank">http://www.gdal.org/ogr/drv_gpx.html</a><br>
<a href="http://www.gdal.org/ogr/drv_vrt.html" target="_blank">http://www.gdal.org/ogr/drv_vrt.html</a><br>
</div><br>but I don&#39;t understand where is the error.<br>Does anibody have similar experience?<br><br>Thancks a lot for any hint.<br>flavio<br clear="all">
<br>-- <br>io uso Debian GNU/Linux<br>user #413018 <a href="http://counter.li.org" target="_blank">counter.li.org</a><br><br>&lt;&lt;usiamo formati aperti!&gt;&gt; <br><a href="http://it.wikipedia.org/wiki/Formato_aperto" target="_blank">http://it.wikipedia.org/wiki/Formato_aperto</a><br>