You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
Pages: 1
#1 2015-01-06 22:09:17
- DHRoss
- Member
- Registered: 2015-01-06
- Posts: 2
Converting JOSM file to regular OSM xml
Wondering if there's any way to output a regular OSM xml file from JOSM, instead of JOSM's adapted format.
See here for details on JOSM's file format: http://wiki.openstreetmap.org/wiki/OSM_XML
Basically I would like to draw maps in JOSM offline and then end up with a regular OSM xml file that I can use in other programs. I do not want to upload this data to OpenStreetMaps because it will not be accurate mapping.
Thanks for your help! ![]()
Offline
#2 2015-01-06 23:14:30
- nordie69
- Member
- Registered: 2015-01-01
- Posts: 38
Re: Converting JOSM file to regular OSM xml
Hi,
you might try the tool osmconvert, which supports a lot of formats.
Stefan
Offline
#3 2015-01-07 01:16:39
- n76
- Member
- Registered: 2013-05-22
- Posts: 313
Re: Converting JOSM file to regular OSM xml
I did not realize there was a problem: I have an area I make paper maps for with data from OSM, elevation data from SRTM and some specific data not appropriate for OSM that I created and edit in JOSM and save in a local .osm file. I am using Mapnik for the actual composition with no issues.
Maybe other data consumers have an issue with JOSM .osm files. Or maybe I got lucky with the type of items I have in the local .osm file.
Offline
#4 2015-01-07 18:06:05
- stephan75
- Member
- Registered: 2008-05-28
- Posts: 2,918
Re: Converting JOSM file to regular OSM xml
when necessary, try the mentioned http://wiki.openstreetmap.org/wiki/Osmconvert ... when calling that programm in a command line with parameter -h it shows the parameter --fake-version
PS: why is this feature of --fake-version not listed properly in the OSM wiki ??????
Offline
#5 2015-01-08 14:59:06
- DHRoss
- Member
- Registered: 2015-01-06
- Posts: 2
Re: Converting JOSM file to regular OSM xml
After doing more research I realized what the problem is that I need a solution for:
I am drawing maps in JOSM with mostly new content, JOSM gives a negative node id to any new content until it is uploaded to OSM and then it is given a positive id once it is merged.
What I need is to output a file with positive node id's on new content from JOSM. This data will never be uploaded and merged to OSM. installing a private server copy of OSM is not an option unfortunately.
Does anyone know of settings I can change in josm to achieve this, a plugin, or a conversion program that would do that offline?
Thanks so much for your help!
Last edited by DHRoss (2015-01-08 15:00:25)
Offline
Pages: 1