OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 2012-08-22 21:00:54

JOSM converting node tot waypoint (GPX)

I can convert a layer to a GPX file in Josm. This works fine for way that are converted into tracks <trk>. Is there a way to convert nodes to GPX waypoints <wpt>  ?

Offline

#2 2012-08-23 09:52:56

Re: JOSM converting node tot waypoint (GPX)

I cannot give you a concrete hint, but have you already been searching at http://help.osm.org about "waypoint" or "gpx" ?

Maybe there are some hints?

Offline

#3 2012-08-23 15:52:18

Vclaw
Senior Member
From: Alba
Registered: 2009-02-25
Posts: 493
Website

Re: JOSM converting node tot waypoint (GPX)

You could save as an .osm file, then use GPSBabel to convert to GPX.

Offline

#4 2012-08-25 21:30:26

Re: JOSM converting node tot waypoint (GPX)

Vclaw wrote:

You could save as an .osm file, then use GPSBabel to convert to GPX.

Thanks. I allready tried this but no result yet. I get a 1kb file that has no waypoints. It does nog seem to contain anything at all.  I may have not given the right parameters. Any idea what I did wrong?

GPSBabel.jpg

Offline

#5 2012-08-26 14:45:43

Re: JOSM converting node tot waypoint (GPX)

Hi,

I supppose you would like to convert all the nodes into waypoints even they do not have any tags. Then I believe you could do it with the new GDAL/OGR OSM driver http://gdal.org/ogr/drv_osm.html
You will need a development version of GDAL (2.0) for getting the driver.

1. Edit the osmconf.ini file to report all the nodes by removing # from this section
# uncomment to report all nodes, including the ones without any (significant) tag
#report_all_nodes=yes
2. Run this ogr2ogr command
ogr2ogr -f GPX output.gpx input.osm points

There are much more nice things that can be done with the GDAL/OGR OSM driver.  For example you can create a POI file directly from .osm or .pbf format, take name tag as GPX name attribute and write street address into GPX description field with a command like

ogr2ogr -f GPX fuel_stations.gpx finland.osm.pbf -sql "select name,addr_street as 'desc' from points where amenity='fuel'"

Last edited by JRA (2012-08-26 14:47:02)

Offline

Board footer

Powered by FluxBB 1.4.8
Hosting sponsored by Oxilion