Skip to content

Instantly share code, notes, and snippets.

@mvexel
Created February 25, 2015 17:49
Show Gist options
  • Save mvexel/96669876e40f123fc7df to your computer and use it in GitHub Desktop.
Save mvexel/96669876e40f123fc7df to your computer and use it in GitHub Desktop.
osc on irc
09:49 < mvexel> If I had a file with proposed changes to OSM, and I wanted to send that to someone to load in JOSM and process, what would be the preferred format?
09:50 < mvexel> OSC or JOSM XML?
--- Log closed Wed Feb 25 09:54:54 2015
--- Log opened Wed Feb 25 09:55:08 2015
09:55 -!- Irssi: #osm-dev: Total of 103 nicks [0 ops, 0 halfops, 0 voices, 103 normal]
09:55 -!- Irssi: Join to #osm-dev was synced in 20 secs
09:59 < simonpoole> JOSM format
10:04 < mvexel> simonpoole, any particular reason why JOSM over OSC?
10:05 < simonpoole> osc only has changes, JOSM would typically have the complete objects
10:05 < mvexel> I'm afraid I am not too familiar with the change file formats...
10:05 < simonpoole> example moving a node of a way
10:07 < mvexel> I thought OSC could / would include complete objects also
10:14 < simonpoole> would not, could perhaps :-)
10:19 < joto> osc files contain complete objects
10:20 < joto> but i don't believe josm can read it
10:21 < joto> as simon says a usual osc file would only contain the node moved, not the way the node might be in
10:21 < joto> but if you are creating that file you could include the way or whatever you want
10:23 < harry-wood> bit of comparison here: http://wiki.openstreetmap.org/wiki/OSM_XML#JOSM_file_format
10:23 < harry-wood> bit of comparison here: 2:<http://wiki.openstreetmap.org/wiki/OSM_XML#JOSM_file_format>
10:25 < mvexel> thanks joto, harry-wood -- The osc support in JOSM has been off-and-on from what I remember, just for that reason JOSM XML may be the better choice then?
10:26 < harry-wood> Yeah I had thought JOSM would open a .osc file
10:26 < harry-wood> Some details here: https://josm.openstreetmap.de/ticket/6653#comment:10
10:26 < harry-wood> Some details here: 3:<https://josm.openstreetmap.de/ticket/6653#comment:10>
10:26 < harry-wood> "JOSM's osm parser used to be very lenient, and opened osc files by ignoring the create, modify and delete tags. The result is incorrect, but could be still useful"
10:27 < mvexel> It does open it but I haven't really looked at how well it displays the changes visually
10:39 < SomeoneElse> mvexel: One of my "how the hell do I use JOSM" help questions was about OSC support, I think. There's probably some useful info on there.
10:40 < mvexel> SomeoneElse: do you remember the title / link?
10:42 < SomeoneElse> mvexel: Reading it again it may not be quite what you're after, but it's https://help.openstreetmap.org/questions/26429/how-do-i-download-a-changeset-in-josm
10:42 < SomeoneElse> mvexel: Reading it again it may not be quite what you're after, but it's 9:<https://help.openstreetmap.org/questions/26429/how-do-i-download-a-changeset-in-josm>
10:42 < mvexel> thanks anyway ;)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment