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_URL=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)  |  [email protected]
> [cid:[email protected]]<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
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to