Excellent. That worked. Thanks Even! -----Original Message----- From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Tuesday, January 24, 2012 10:20 AM To: Pouliot, Christopher (DNR) Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Saving waypoints, tracks, and routes to a GPX file
Selon "Pouliot, Christopher (DNR)" <christopher.poul...@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@01CCDA7D.45A462B0] > > Does anyone know what I may be doing wrong? > > Thanks, > > CHris > > > > Chris Pouliot > GIS Application Developer > Minnesota Department of Natural Resources > christopher.poul...@state.mn.us > (651) 259-5491 > > _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev