[osmosis-dev] Merge multiple files
Toby Murray
toby.murray at gmail.com
Thu Oct 24 23:19:45 UTC 2013
On Thu, Oct 24, 2013 at 3:56 PM, Jaromír Mikeš <mira.mikes at seznam.cz> wrote:
>
> but I still can't merge files because of this error:
>
>
> ------------------------------
>
> $ osmosis --rx 1.osm --rx 2.osm --rx 3.osm --merge --merge --wx merged.osm
> Oct 24, 2013 10:47:32 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Osmosis Version 0.40.1
> Oct 24, 2013 10:47:32 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Preparing pipeline.
> Oct 24, 2013 10:47:32 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Launching pipeline execution.
> Oct 24, 2013 10:47:32 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Pipeline executing, waiting for completion.
> Oct 24, 2013 10:47:32 PM
> org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager
> waitForCompletion
> SEVERE: Thread for task 1-rx failed
> org.openstreetmap.osmosis.core.OsmosisRuntimeException: The entity
> timestamp attribute is missing.
> at
> org.openstreetmap.osmosis.core.domain.common.UnparsedTimestampContainer.<init>(UnparsedTimestampContainer.java:34)
> at
> org.openstreetmap.osmosis.xml.common.BaseElementProcessor.createTimestampContainer(BaseElementProcessor.java:90)
> at
> org.openstreetmap.osmosis.xml.v0_6.impl.NodeElementProcessor.begin(NodeElementProcessor.java:79)
> at
> org.openstreetmap.osmosis.xml.v0_6.impl.OsmHandler.startElement(OsmHandler.java:90)
> at org.apache.xerces.parsers.AbstractSAXParser.startElement(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)
> 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:724)
>
>
> etc.
>
> -----------------------
>
>
> I am trying merge osm files created by phyghtmap tool.
>
>
> Any help with this failure?
>
>
This means objects in your .osm file are missing a timestamp=* attribute. I
wouldn't be surprised if they area also lacking version and user.
Osmosis requires full OSM metadata on objects. Some tools strip it out if
the data isn't intended to be used for editing. This includes timestamp,
version and last editor information. For example, overpass by default
strips this out to reduce the amount of data being downloaded. If you want
it, you have to add something to the query to add it back in. Not sure how
this phyghtmap tool works.
Toby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20131024/6de5f74a/attachment.html>
More information about the osmosis-dev
mailing list