Modify

Opened 16 years ago

Closed 16 years ago

Last modified 8 years ago

#2644 closed defect (worksforme)

Rev 1604 stops JOSM editing XAPI data that lacks version attributes

Reported by: anonymous Owned by: team
Priority: major Milestone:
Component: Core Version:
Keywords: Cc: Gubaer

Description

Since 1604, I can no longer edit data downloaded using XAPI because I get:

org.xml.sax.SAXException: Missing attribute "version" on OSM primitive with id 289544998

at org.openstreetmap.josm.io.OsmReader.readCommon(OsmReader.java:314)

This is because some of the nodes downloaded using XAPI don't appear to have a version attribute.

What needs fixing here, JOSM or XAPI?

Thanks

Attachments (0)

Change History (4)

comment:1 by Gubaer, 16 years ago

Cc: Gubaer added

What needs fixing here, JOSM or XAPI

I'd say XAPI. If XAPI files have a "0.6" api header they should provide a version attribute on all primitives. JOSM rejects "0.6"-files with missing versions.

You can change the version in the file to "0.5". In this case, JOSM will accept missing versions. It will also prevent you from uploading 0.5-data to the 0.6-API.

comment:2 by stoecker, 16 years ago

Resolution: worksforme
Status: newclosed

JOSM and XAPI 0.6 work fine now.

comment:3 by anonymous, 13 years ago

This again stopped working!

comment:4 by anonymous, 8 years ago

If you convert "id" to a negative number, it works:

perl -pe 's/id="/id="-/g' from-overpass.osm > output.osm

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.