[gdal-dev] ogr2ogr and GPX files
Dylan Beaudette
dylan.beaudette at gmail.com
Mon Mar 3 01:04:41 EST 2008
Hi,
is there a simple approach (via ogr2ogr) to create GPS files which have
standard waypoint tags such as <name>, <elev>, <cmt>, etc. by re-mapping
columns in the attribute table of the source vector?
for example:
# export points vector from GRASS
v.out.ogr in=wp type=point dsn=wp.shp
# convert tp GPX:
ogr2ogr -t_srs '+proj=latlong +datum=WGS84' \
-f GPX -dsco GPX_USE_EXTENSIONS=YES \
wp_gps.gpx wp.shp
This results in a working GPX waypoints file, that when uploaded to a GPS is
functional, but the waypoints are all re-named sequentially. Note that I am
uploading the GPX file the GPS via gpsbabel.
Does anyone know of the appropriate incantation that one could use to
translate the column structure of the input wp.shp (i.e. the stuff in
its .dbf) into standard waypoint tags?
thanks in advance!
PS: trying to write a simple tutorial for some colleagues [1]
1. http://casoilresource.lawr.ucdavis.edu/drupal/node/553
--
Dylan Beaudette
Soil Resource Laboratory
http://casoilresource.lawr.ucdavis.edu/
University of California at Davis
530.754.7341
More information about the gdal-dev
mailing list