Skip to main content
8 events
when toggle format what by license comment
Nov 22, 2023 at 15:10 comment added Marjan Moderc May I add just one more important detail for a desired output: Make sure that you are exporting data in CRS: epsg:4326! Otherwise, data is going to be all over the place!
Jul 30, 2013 at 12:41 history edited AndreJ CC BY-SA 3.0
deleted 21 characters in body
Nov 11, 2012 at 20:36 comment added AndreJ Strange, it worked here. You have to set "GPX_USE_EXTENSIONS=YES" in the upper field of the Save As dialogue. With the checkbox it does not work. For the ogr2ogr, you have to use the layername, not necessary the same as the shapefiles name.
Nov 11, 2012 at 19:45 comment added ePascoal i tried to rename the id field in shapefile to name before exporting but doesn't work. i look for an application that add an python app named PostGPS, but doesn't work. I tried with ogr2ogr using your script too without success :/ Am i doing something wrong. There is any other possible sollution?
Nov 10, 2012 at 6:15 comment added AndreJ You can use the table manager plugin to rename the id field in the shapefile to "name" before exporting and change it back afterwards. If necessary, you have to add pyqgis.org/repo/contributed to the list of your repositories.
Nov 9, 2012 at 15:55 comment added AndreJ I'm afraid this is not possible on exporting. it is possible with ogr2ogr.exe from the gdal package: ogr2ogr -f GPX -dsco GPX_USE_EXTENSIONS=NO shpexport.gpx D:\path\to\your\test.shp -lco FORCE_GPX_TRACK=YES -sql "SELECT id AS name FROM layername"
Nov 9, 2012 at 14:26 comment added ePascoal Thanks, it really works, but when i convert shp to gpx i lost my Id field. All my gpx fields are null. How can i correspond my "id" field(shp file) to "name" field(gpx file).
Nov 9, 2012 at 13:56 history answered AndreJ CC BY-SA 3.0