Even, Thanks for the response! I see that GPSBabel uses GDAL and writes out multiple extensions. I'll check with them to see how they are doing it.
Chris -----Original Message----- From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Thursday, November 07, 2013 1:22 PM To: gdal-dev@lists.osgeo.org Cc: Pouliot, Christopher (MNIT) Subject: Re: [gdal-dev] Writing GPX Files with multiple Extensions Le jeudi 07 novembre 2013 16:51:35, Pouliot, Christopher (MNIT) a écrit : > Hello All, > > I am currently using GDAL 1.9 and I'm writing out GPX files for > uploading onto Garmin units. Garmin has many different GPX extensions > (gpxx, gpxtpx, gpxtrx, etc) for defining extra attributes for their > GPS data. I am wondering how I would specify these multiple extensions in my > code? > Currently, I am defining a single extension as shown below: > > ds = drv.CreateDataSource(outputFilePath, new string[] { > "GPX_USE_EXTENSIONS=YES","GPX_EXTENSIONS_NS=gpxx","GPX_EXTENSIONS_NS_U > RL=h ttp://www.garmin.com/xmlschemas/GpxExtensions/v3"});} > > How would I go about setting more namespaces (gpxtpx, gpxtrx, ...)? This is not possible currently. Would require an enhancement in the driver, like acception a comma separated list of values for GPX_EXTENSIONS_NS and GPX_EXTENSIONS_NS_URL > And > then how would I specify that an attribute belongs in a particular > extension? It could detect it by the name of attribute. For example, gpxx_foo, gpxtpx_bar, gpxtrx_baz > > Thanks, > > Chris > > Chris Pouliot | GIS Application Developer MN.IT Services @ > Department of Natural Resources > (651) 259-5491 (w) | christopher.poul...@state.mn.us > [cid:image002.jpg@01CEDB9E.F20C9670]<http://www.mn.gov/oet> Information > Technology for Minnesota Government | > mn.gov/oet<http://www.mn.gov/oet> -- Geospatial professional services http://even.rouault.free.fr/services.html _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev