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

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Thu Jan 15 04:43:28 EST 2009


Stefan Keller <sfkeller <at> gmail.com> writes:

> 
> 
> 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
> Stefanhttp://geoconverter.hsr.ch
> 2009/1/14 Jean-Claude Repetto <jrepetto <at> free.fr>Duarte Carreira a écrit : 

Hi,

Original question was about combining line shapefile and point shapefile into
one gpx file that can hold features of both types.  It is impossible to combine
them to one shapefile. If it does not go directly to gpx them perhaps it would
succeed by using some other interim format that supports mixed feature types in
between, MapInfo tab for example?



More information about the gdal-dev mailing list