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

OsmosisRuntimeException: Pipeline entities are not sorted or contain multiple versions of a single entity, previous entity type=Node, id=191805, version=5 current entity type=Node, id=191805, version=6.

Im having trouble with Osmosis when I try to apply a change set to a OSM file. I tried the following:

  1. Extract a City data as OSM file from Planet OSM (using bounding poly file)
  2. Sort the generated OSM
  3. Get the immediate next change set file (OSC file) from Planet OSM website
  4. Sort the Change set file
  5. Run the osmosis apply-change command like below: $>osmosis --rxc d:\change_set_15Apr_sorted.osc --rx d:\myCity_sorted.osm --ac --wx d:\myCity_merged.osm

Osmosis throws the following exception: org.openstreetmap.osmosis.core.OsmosisRuntimeException: Pipeline entities are not sorted or contain multiple versions of a single entity, previous entity type=Node, id=191805, version=5 current entity type=Node, id=191805, version=6. at org.openstreetmap.osmosis.core.sort.v0_6.SortedDeltaChangePipeValidator.process(SortedDeltaChangePipeValidato r.java:49) at org.openstreetmap.osmosis.xml.v0_6.impl.ChangeSourceElementProcessor$ChangeSinkAdapter.process(ChangeSourceEl ementProcessor.java:134) at org.openstreetmap.osmosis.xml.v0_6.impl.NodeElementProcessor.end(NodeElementProcessor.java:118) at org.openstreetmap.osmosis.xml.v0_6.impl.OsmChangeHandler.endElement(OsmChangeHandler.java:94) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

How do I eliminate the duplicated nodes?

Appreciate your help.

Thank you Kris

asked 01 May '12, 07:46

kris's gravatar image

kris
46447
accept rate: 0%

edited 29 Dec '14, 14:06

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


I found the solution. I used the --simc task and extracted the unique/latest node set from the change files; sorted the change set and then applied it on the existing city file. It works now! Note: Use the respective bounding box/poly file so that the change set is applied for the specified area - otherwise the --apply-change task merges the change set/osc file to the OSM file.

Kris

permanent link

answered 01 May '12, 09:33

kris's gravatar image

kris
46447
accept rate: 0%

edited 01 May '12, 09:50

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273

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
×41

question asked: 01 May '12, 07:46

question was seen: 7,478 times

last updated: 29 Dec '14, 14:06

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