Public bug reported:

I am unable to use osmosis 0.40.1+ds1-7 to convert an XML export from
the OpenStreetMap site which I downloaded today.  The download includes
some nodes (points) which have identifiers that cannot be represented as
32-bit integers.  This has been an issue for just over a year (since
February 2013) when node identifiers in the OpenStreetMap database began
to exceed 2^31 − 1.

http://wiki.openstreetmap.org/wiki/64-bit_Identifiers

To reproduce

1. Use a web browser to go to http://www.openstreetmap.org
2. Zoom into a relatively small area (perhaps about 1 mile across, for 
instance) which includes ways/nodes edited since February 2013, and click the 
Export button.  (This is the area I used: 
http://www.openstreetmap.org/#map=16/44.9483/-93.0928 )
3. Save the downloaded file.
4. Run "osmosis --read-xml file=map.osm --used-node --write-xml file=out.xml" 
(where "map.osm" is the file you downloaded and "out.xml" is an arbitrary 
output filename).

When I run the command, I see the following messages:

Feb 19, 2014 10:58:34 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.40.1
Feb 19, 2014 10:58:34 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Feb 19, 2014 10:58:34 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Feb 19, 2014 10:58:34 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Feb 19, 2014 10:58:35 PM 
org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager 
waitForCompletion
SEVERE: Thread for task 1-read-xml failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Cannot represent 
2338276334 as an integer.
        at 
org.openstreetmap.osmosis.core.util.LongAsInt.longToInt(LongAsInt.java:33)
        at 
org.openstreetmap.osmosis.core.filter.common.ListIdTracker.set(ListIdTracker.java:118)
        at 
org.openstreetmap.osmosis.tagfilter.v0_6.UsedNodeFilter.process(UsedNodeFilter.java:96)
        at 
org.openstreetmap.osmosis.core.container.v0_6.WayContainer.process(WayContainer.java:60)
        at 
org.openstreetmap.osmosis.tagfilter.v0_6.UsedNodeFilter.process(UsedNodeFilter.java:65)
        at 
org.openstreetmap.osmosis.xml.v0_6.impl.WayElementProcessor.end(WayElementProcessor.java:117)
        at 
org.openstreetmap.osmosis.xml.v0_6.impl.OsmHandler.endElement(OsmHandler.java:107)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)
        at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:189)
        at org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:108)
        at java.lang.Thread.run(Thread.java:744)

Feb 19, 2014 10:58:35 PM org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks 
failed.
        at 
org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pipeline.java:146)
        at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92)
        at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:328)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:31)


Observed on:

Description:    Ubuntu 13.10
Release:        13.10

** Affects: osmosis (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1282384

Title:
  osmosis can't handle 64-bit way identifiers

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/osmosis/+bug/1282384/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to