I am trying to compile a map, I added fake version and fake author with osmconvert. But I am getting this error. Btw I am using latest stable. The command I have used: bin/osmosis --rx file="engineering-raw-auth-version.osm" --mapfile-writer file=engineering-base-drawing.map type=hd tag-conf-file=tag-mapping.xml tag-values=true ```` org.openstreetmap.osmosis.core.OsmosisRuntimeException: Cannot begin reading in Add stage, must call complete first. at org.openstreetmap.osmosis.core.store.RandomAccessObjectStore.initializeReadingStage(RandomAccessObjectStore.java:156) at org.openstreetmap.osmosis.core.store.RandomAccessObjectStore.createReader(RandomAccessObjectStore.java:181) at org.openstreetmap.osmosis.core.store.IndexStore.createReader(IndexStore.java:151) at org.openstreetmap.osmosis.core.store.IndexedObjectStore.createReader(IndexedObjectStore.java:96) at org.mapsforge.map.writer.HDTileBasedDataProcessor.complete(HDTileBasedDataProcessor.java:132) at org.mapsforge.map.writer.osmosis.MapFileWriterTask.complete(MapFileWriterTask.java:104) at org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:53) at java.base/java.lang.Thread.run(Thread.java:834) Aug 18, 2022 3:30:15 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 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) at org.codehaus.classworlds.Launcher.main(Launcher.java:47) ```` asked 18 Aug '22, 13:35 baranacikgoz |
I just removed the type=hd and it worked. answered 18 Aug '22, 14:00 baranacikgoz |
Two questions:
1) What osmosis command did you actually run?
2) What is your end goal? I'm not sure what "compile a map" means, and it may be there is a better way to do whatever it is that you are trying to do.
Sorry, the command was I use:
bin/osmosis --rx file="engineering-raw-auth-version.osm" --mapfile-writer file=engineering-base-drawing.map type=hd tag-conf-file=tag-mapping.xml tag-values=true