NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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

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.

permanent link

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

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

permanent link

answered 15 Nov '13, 06:37

Dymo12's gravatar image

Dymo12
79611016
accept rate: 12%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×252

question asked: 15 Nov '13, 06:13

question was seen: 10,690 times

last updated: 17 Nov '13, 04:07

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum