Skip to content
This repository was archived by the owner on Jul 24, 2021. It is now read-only.
This repository was 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

@openstreetmap-trac

Description

@openstreetmap-trac

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).

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions