Convert .osm to .map (in josm)

1,006 views
Skip to first unread message

Rodrigo

unread,
Jun 6, 2012, 5:46:39 PM6/6/12
to mapsforge-dev
I have problems converting a .osm -> .map, when I add streets, avenues
in JOSM, the osmosis tells me:

"
GRAVE: Thread for task 1-read-xml failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Node -10755
does not have a version attribute as OSM 0.6 are required to have. Is
this a 0.5 file?
"

But if the same .osm file you edit, or delete attributes (in Josm), if
I can convert the .osm to .map

What could be the problem? from already thank you very much

Ludwig

unread,
Jun 6, 2012, 6:51:32 PM6/6/12
to mapsfo...@googlegroups.com
It tells you certain required attributes to one of the added elements is missing, such as version, changeset, timestamp. A way for example needs to look like this:

<way id="17000000317" visible="true" timestamp="2009-01-19T19:07:25Z" version="8" changeset="816806" user="Blumpsy" uid="64226"><nd ref="27000037156"/><nd ref="27000037157"/><nd ref="27000037158"/><nd ref="27000037159"/><nd ref="27000037156"/></way>

The values of these tags does not really matter. Osmosis at this point is a bit too strict, IMHO.

Rodrigo

unread,
Jun 7, 2012, 4:10:56 AM6/7/12
to mapsforge-dev
Perfect, but the way ID, timestamp, version, not placed
automatically?
or where should I add?

Why not add these attributes JOSM automatically?
Thanks

Didoa

unread,
Jun 22, 2012, 8:00:42 AM6/22/12
to mapsfo...@googlegroups.com
Hi, 

version, changesetand and timestamp are server/osm database related informations, they are know after the data is uploaded to the osm server,
newly created (yet not uploaded) elements has negative ids, unkonown changes and timestamp value (atleast in josm)... 

so josm osm files are partly not compatible with api 0.6 spec.

Didoa

Dňa štvrtok, 7. júna 2012 10:10:56 UTC+2 Rodrigo napísal(-a):
Reply all
Reply to author
Forward
0 new messages