[gdal-dev] convert 2 shapefiles to a single GPX?

Stefan Keller sfkeller at gmail.com
Wed Jan 14 17:39:55 EST 2009


A merge of two shapefiles 'file1.shp' and 'file2.shp' into a new file
'file_merged.shp' is performed like this (See
http://www.gdal.org/ogr/drv_shapefile.html):

% ogr2ogr file_merged.shp file1.shp
% ogr2ogr -update -append file_merged.shp file2.shp -nln file_merged

Then convert to GPX:
% ogr2ogr -f "GPX" out.gpx file_merged.shp

Stefan
http://geoconverter.hsr.ch

2009/1/14 Jean-Claude Repetto <jrepetto at free.fr>

> Duarte Carreira a écrit :
>
>> Can OGR convert 2 shapefiles to a single GPX?
>>
>> The objective is to add tracks from a line shapefile and waypoints from a
>> point shapefile…
>>
>>
> Hello,
>
> I don't know the answer to your question, but since GPX files are text
> files, it is very easy to merge two GPX files with a text editor.
>
> HTH !
> Jean-Claude
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090114/b302a3ca/attachment.html


More information about the gdal-dev mailing list