Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#3446 closed defect (fixed)

JOSM throws an XML parsing error when opening an OSM file with a <bound> element

Reported by: avarab@… Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

An OSM file produced by osmosis that begins like this can't be opened by JOSM:

<?xml version='1.0' encoding='UTF-8'?>
<osm version="0.6" generator="Osmosis 0.31.1">
  <bound box="47.90714,7.67395,48.07441,8.01453" origin="http://www.openstreetmap.org/api/0.6"/>
  <node [...]

If you remove the <bound> element it loads just fine.

JOSM should just ignore the <bound> element and continue parsing.

Attachments (0)

Change History (4)

comment:1 by Gubaer, 15 years ago

(In [2092]) see #3446: JOSM throws an XML parsing error when opening an OSM file with a <bound> element

comment:2 by Gubaer, 15 years ago

Resolution: fixed
Status: newclosed

Not sure whether this is really a defect. I'd prefer JOSM to be more restrictive about the data it loads and <bounds> is not a "standard" OSM tag. On the other hand, there are probably no "standard" OSM tags. There's not formal spec for an OSM file or is there?

Instead of throwing an exception JOSM now logs a warning.

in reply to:  2 comment:3 by framm, 15 years ago

Replying to Gubaer:

Not sure whether this is really a defect. I'd prefer JOSM to be more restrictive about the data it loads and <bounds> is not a "standard" OSM tag. On the other hand, there are probably no "standard" OSM tags. There's not formal spec for an OSM file or is there?

Instead of throwing an exception JOSM now logs a warning.

I would say that something which is written out by Osmosis comes pretty close to being a "standard" tag. Whenever someone cuts an area out of an OSM file it will have this tag.

comment:4 by Gubaer, 15 years ago

That's why JOSM logs a warning: the tag is there but JOSM doesn't process it.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.