[gdal-dev] Saving waypoints, tracks, and routes to a GPX file
Pouliot, Christopher (DNR)
Christopher.Pouliot at state.mn.us
Tue Jan 24 11:39:04 EST 2012
Excellent. That worked. Thanks Even!
-----Original Message-----
From: Even Rouault [mailto:even.rouault at mines-paris.org]
Sent: Tuesday, January 24, 2012 10:20 AM
To: Pouliot, Christopher (DNR)
Cc: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] Saving waypoints, tracks, and routes to a GPX file
Selon "Pouliot, Christopher (DNR)" <Christopher.Pouliot at state.mn.us>:
There are elements in http://gdal.org/ogr/drv_gpx.html
Bascially, you need to create different layers for each geometry types you want
to write. And you need to create (and populate them) in the order described :
waypoints, routes and tracks
> Hello,
>
> I'm working in C# using the gdal c# wrappers and am trying to write multiple
> gps shape types (waypoints AND tracks AND routes) to a single GPX file. When
> creating a GPX layer I am required to define an shape type:
>
> layer = ds.CreateLayer(outputLayerName,
> sr,wkbGeometryType.wkbMultiLineString25D, new string[] { });
>
> But if I do that then I can only write a single gps shape type to that file,
> otherwise I get an error: "ogr_csharp - Features without geometry or with
> non-ponctual geomemetries not supported by GPX writer in waypoints layer."
>
> [cid:image001.png at 01CCDA7D.45A462B0]
>
> Does anyone know what I may be doing wrong?
>
> Thanks,
>
> CHris
>
>
>
> Chris Pouliot
> GIS Application Developer
> Minnesota Department of Natural Resources
> christopher.pouliot at state.mn.us
> (651) 259-5491
>
>
More information about the gdal-dev
mailing list