[GRASS-dev] Re: [GRASS GIS] #349: v.out.gpsbabel

GRASS GIS trac at osgeo.org
Thu Oct 30 03:30:20 EDT 2008


#349: v.out.gpsbabel
--------------------------+-------------------------------------------------
  Reporter:  hamish       |       Owner:  grass-dev at lists.osgeo.org
      Type:  enhancement  |      Status:  new                      
  Priority:  major        |   Milestone:  6.4.0                    
 Component:  Vector       |     Version:  unspecified              
Resolution:               |    Keywords:  gpsbabel gpx export      
  Platform:  All          |         Cpu:  All                      
--------------------------+-------------------------------------------------
Comment (by neteler):

 ogr2ogr with GRASS plugin seems to do something for GPX:

 {{{
 ogr2ogr -f "GPX" /tmp/roads.gpx
 /home/neteler/grassdata/latlong/PERMANENT/vector/roads/head
 Warning 1: GRASS warning: GISBASE enviroment variable was not set, using:
 /home/neteler/grass64/dist.x86_64-unknown-linux-gnu
 ERROR 6: Field of name 'cat' is not supported in GPX schema. Use
 GPX_USE_EXTENSIONS creation option to allow use of the <extensions>
 element.
 ERROR 6: Field of name 'FNODE_' is not supported in GPX schema. Use
 GPX_USE_EXTENSIONS creation option to allow use of the <extensions>
 element.
 ERROR 6: Field of name 'TNODE_' is not supported in GPX schema. Use
 GPX_USE_EXTENSIONS creation option to allow use of the <extensions>
 element.
 ERROR 6: Field of name 'LPOLY_' is not supported in GPX schema. Use
 GPX_USE_EXTENSIONS creation option to allow use of the <extensions>
 element.
 ...

 head /tmp/roads.gpx
 <?xml version="1.0"?>
 <gpx version="1.1" creator="GDAL 1.6.0dev"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns="http://www.topografix.com/GPX/1/1"
 xsi:schemaLocation="http://www.topografix.com/GPX/1/1
 http://www.topografix.com/GPX/1/1/gpx.xsd">
 <rte>
   <rtept lat="46.496014615508486" lon="11.787510530727392">
     <ele>0.000000</ele>
   </rtept>
   <rtept lat="46.496068936543473" lon="11.788050878137794">
     <ele>0.000000</ele>
   </rtept>
   <rtept lat="46.496084453543688" lon="11.788152669713275">
 ...

 tail /tmp/roads.gpx
 </rte>
 <rte>
   <rtept lat="45.836343018280424" lon="11.010669506900909">
     <ele>0.000000</ele>
   </rtept>
   <rtept lat="45.836339313174427" lon="11.010664663523668">
     <ele>0.000000</ele>
   </rtept>
 </rte>
 </gpx>
 }}}

 I didn't check what GPX_USE_EXTENSIONS does but probably a simple
 shell/python wrapper to ogr2ogr would do the job.

 Markus

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/349#comment:2>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list