This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Error while using osmosis

3

I was trying to filter openstreet map data using osmosis. I used the following

osmosis --read-xml city.osm --tf accept-ways highway=* --used-node --write-xml highways.osm

But while i run this command in osmosis with osm file "city.osm" it throws run time exception

SEVERE: Thread for task 1-read-xml failed org.openstreetmap.osmosis.core.OsmosisRuntimeException: Cannot represent 2169105896 as an integer. at org.openstreetmap.osmosis.core.util.LongAsInt.longToInt(LongAsInt.java:33)

What could be the problem?

asked 15 Nov '13, 06:13

Poshan's gravatar image

Poshan
61116
accept rate: 0%

1

Where did "city.osm" come from? Knowing that may help people understand the missing data (mentioned in the comment).

(15 Nov '13, 10:28) SomeoneElse ♦

it seems i had error with my osm file city.osm. Everything worked fine after i downloaded and used another file from metroextract metro.teczno.com. Thanks.

(17 Nov '13, 04:07) Poshan

2 Answers:

4

Which version of osmosis are you using? Update your osmosis and see if it works. The node id of OSM has exceeded the 2^32 - 1 so you might be using order version of osmosis which might be giving you this error.

answered 15 Nov '13, 08:03

Nirab%20Pudasaini's gravatar image

Nirab Pudasaini
55621514
accept rate: 40%

edited 15 Nov '13, 08:15

1

i have updated osmosis to 0.43.1 version but new kind of error shows SEVERE: Thread for task 1-read-xml failed org.openstreetmap.osmosis.core.OsmosisRuntimeException: The entity timestamp att ribute is missing. at org.openstreetmap.osmosis.core.domain.common.UnparsedTimestampContain er.<init>(UnparsedTimestampContainer.java:34)

(15 Nov '13, 08:13) Poshan

1

It could be because you have an old version of osmosis that don't support 64 bit id's.

answered 15 Nov '13, 06:37

Dymo12's gravatar image

Dymo12
79611016
accept rate: 12%

Source code available on GitHub .