Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

osmosis can't parse un-uploaded 0.6 .osm files (from JOSM, other tools) due to requiring version="" #2620

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: avarab[at]gmail.com
[Submitted to the original trac issue database at 2.54pm, Sunday, 10th January 2010]

(This is related to #2474)

osmosis will die on files like this one:

<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.6' generator='JOSM'>
  <node id='-1' visible='true' lat='0.9821734421147642' lon='-1.0863279795680407' />
  <node id='-2' visible='true' lat='-1.4618577742968084' lon='0.6155858550885565' />
  <way id='-3' visible='true'>
    <nd ref='-1' />
    <nd ref='-2' />
  </way>
</osm>

It shouldn't require the version attribute on elements with a negative id attribute. This breaks using osmosis as a preprocessor before one uploads a file generated by some script (like *2osm).

@openstreetmap-trac
Copy link
Author

Author: brett[at]bretth.com
[Added to the original trac issue at 11.41am, Monday, 6th September 2010]

Osmosis is not compatible with JOSM format OSM files. JOSM OSM files are editor oriented and deviate from Osmosis in a number of ways (version and action attributes at least ...) If you wish to discuss this in more detail please post to the osmosis-dev mailing list, but for now there are no plans to rectify this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant