Opened 11 years ago

Closed 8 years ago

#1606 closed defect (wontfix)

sliced download breaks osmosis

Reported by: stephankn Owned by: bretth
Priority: major Milestone:
Component: osmosis Version:
Keywords: Cc: stephankn


Downloading data in slices seams to corrupt the data. Later osmosis fails on the data with the following exception:

[#220 100% ] Tileset (12,2204,1370) around 51.04,13.75
[#220   0% Download] Trying smaller slices for map data from ROMA
[#220   0% tile] Running area-center... ERROR
  The following command produced an error message:
  "c:\Program Files\Java\jre6\bin\java.exe" -Xmx5G -cp java/osmosis/osmosis.jar;java/area-center.jar com.bretth.osmosis.core.Osmosis -q -p o
rg.tah.areaCenter.AreaCenterPlugin --read-xml D:\TilesAtHome\tmp\12_2204_1370_tib7m\dataclose-areas.osm --area-center --write-xml D:\TilesAt
  Debug output follows:
  | 17.02.2009 17:19:33 com.bretth.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
  | SCHWERWIEGEND: Thread for task 1-read-xml failed
  | com.bretth.osmosis.core.OsmosisRuntimeException: Bound element must come before any entities.
  |     at com.bretth.osmosis.core.xml.v0_5.impl.OsmElementProcessor.getChild(
  |     at com.bretth.osmosis.core.xml.v0_5.impl.OsmHandler.startElement(
  |     at Source)
  |     at Source)
  |     at Source)
  |     at$ Source)
  |     at Source)
  |     at Source)
  |     at Source)
  |     at Source)
  |     at Source)
  |     at Source)
  |     at$JAXPSAXParser.parse(Unknown Source)
  |     at javax.xml.parsers.SAXParser.parse(Unknown Source)
  |     at javax.xml.parsers.SAXParser.parse(Unknown Source)
  |     at
  |     at Source)
  | 17.02.2009 17:19:33 com.bretth.osmosis.core.Osmosis main
  | SCHWERWIEGEND: Execution aborted.
  | com.bretth.osmosis.core.OsmosisRuntimeException: One or more tasks failed.
  |     at com.bretth.osmosis.core.pipeline.common.Pipeline.waitForCompletion(
  |     at com.bretth.osmosis.core.Osmosis.main(

Change History (3)

comment:1 Changed 11 years ago by Knut Arne Bjørndal

Component: tilesathomeosmosis
Owner: changed from osm@… to bretth

Osmosis shouldn't die just because there's something before the bound element. I believe you will also get such a thing if you download a couple of areas in josm and save it, since it will output <bound> and <bounds> for every downoaded area.

The bound element is deprecated anyway, see #1011 and

comment:2 Changed 11 years ago by bretth

I'm unlikely to look into this one for some time. I'd be ecstatic if somebody else updated the current bound support.

comment:3 Changed 8 years ago by bretth

Resolution: wontfix
Status: newclosed

Osmosis has for some time now supported the new bounds element.

However, the bounds element still must exist prior to node, way and relation elements. This is not going to change. Osmosis processes data as a stream so it needs access to the bounds element first. It can't load the entire file into memory first and sort before beginning processing.

Note: See TracTickets for help on using tickets.