[GRASS-user] Rename multiple sqlite columns at once

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Tue Nov 18 09:12:41 EST 2008


On Sat, 2008-11-15 at 23:53 -0800, Hamish wrote:
> Hi,
> 
> I haven't really been following this thread (or know much about it), but
> I spotted this tip on the gdal site, maybe it helps:
> 
> http://www.gdal.org/ogr/drv_gpx.html
> # Use of -sql option to remap field names to the ones allowed by the GPX schema !
> 
> ogr2ogr -f GPX output.gpx input.shp -sql "SELECT field1 AS name, field2 AS desc FROM source_layer"

> Hamish

Hamish,
sorry for not following up. I've tried your suggestion and there was
some error. I can't provide details now (working in another machine).
I'll do so later... :-)

Cheers, Nikos



More information about the grass-user mailing list