Hello,
I’m trying to follow a guide to filter the power data from some OSM-Data using osmosis.
Using following Code:
osmosis \
--read-pbf file=~/desktop/BA/Modell/SciGRID/data/01_osm_raw_data/germany-24.10.21.osm.pbf
--tag-filter accept-relations route=power
--used-way --used-node
--bounding-polygon file=~/desktop/BA/Modell/SciGRID/data/01_osm_raw_data/germany.poly
completeRelations=yes --buffer outPipe.0=route
--read-pbf file=~/desktop/BA/Modell/SciGRID/data/01_osm_raw_data/germany-24.10.21.osm.pbf
--tag-filter accept-relations power=*
--used-way --used-node
--bounding-polygon file=~/desktop/BA/Modell/SciGRID/data/01_osm_raw_data/germany.poly
completeRelations=yes --buffer outPipe.0=power
--read-pbf file=~/desktop/BA/Modell/SciGRID/data/01_osm_raw_data/germany-24.10.21.osm.pbf
--tag-filter reject-relations
--tag-filter accept-ways power=*
--used-node
--bounding-polygon file=~/desktop/BA/Modell/SciGRID/data/01_osm_raw_data/germany.poly
completeWays=yes --buffer outPipe.0=pways
--read-pbf file=~/desktop/BA/Modell/SciGRID/data/01_osm_raw_data/germany-24.10.21.osm.pbf
--tag-filter reject-relations
--tag-filter reject-ways
--tag-filter accept-nodes power=*
--bounding-polygon file=~/desktop/BA/Modell/SciGRID/data/01_osm_raw_data/germany.poly
--buffer outPipe.0=pnodes
--merge inPipe.0=route inPipe.1=power
--buffer outPipe.0=mone
--merge inPipe.0=pways inPipe.1=pnodes
--buffer outPipe.0=mtwo
--merge inPipe.0=mone inPipe.1=mtwo
--write-pbf file=~/desktop/BA/Modell/SciGRID/data/02_osm_raw_power_data/de_power_24.10.21.osm.pbf
First, I’m running just "osmosis ", then the rest of the code via copy/paste(at once).
He makes it all the way to “–bounding-polygon file=~/desktop/BA/Modell/SciGRID” when he stops in the middle of the command/path and throws the following error:
Nov. 03, 2021 1:51:16 PM org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: The following named pipes () and 1 default pipes have not been terminated with appropriate output sinks.
at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.connectTasks(Pipeline.java:96)
at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:116)
at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:86)
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:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
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)
After that, he leaves osmosis and starts running everything from "-—tag-filter accept-relations route=power " in the normal console, obviously giving a “command not found” after every line. I’m confused.
What am I doing wrong?
Does anyone have an idea?
Thank you for any help.