<HTML><BODY><div> </div><div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#333333; font-family:Arial,Tahoma,Verdana,sans-serif; font-size:15px; font-style:normal; font-variant-caps:normal; font-variant-ligatures:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">Hello!</div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#333333; font-family:Arial,Tahoma,Verdana,sans-serif; font-size:15px; font-style:normal; font-variant-caps:normal; font-variant-ligatures:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"> </div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#333333; font-family:Arial,Tahoma,Verdana,sans-serif; font-size:15px; font-style:normal; font-variant-caps:normal; font-variant-ligatures:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">Trying to extract a region from a pbf using poly-file I came across a problem. </div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#333333; font-family:Arial,Tahoma,Verdana,sans-serif; font-size:15px; font-style:normal; font-variant-caps:normal; font-variant-ligatures:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"> </div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#333333; font-family:Arial,Tahoma,Verdana,sans-serif; font-size:15px; font-style:normal; font-variant-caps:normal; font-variant-ligatures:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">My command:</div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#333333; font-family:Arial,Tahoma,Verdana,sans-serif; font-size:15px; font-style:normal; font-variant-caps:normal; font-variant-ligatures:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"> </div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#333333; font-family:Arial,Tahoma,Verdana,sans-serif; font-size:15px; font-style:normal; font-variant-caps:normal; font-variant-ligatures:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">osmosis --read-pbf central-fed-district-latest.osm.pbf --bounding-polygon file="E:\3d\osmosis-0.47.1\bin\mo.poly"  --write-pbf mo.pbf</div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#333333; font-family:Arial,Tahoma,Verdana,sans-serif; font-size:15px; font-style:normal; font-variant-caps:normal; font-variant-ligatures:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">Pbf-file was downloaded from here: <a style="color: rgb(0, 91, 209); text-decoration: underline;" href="https://download.geofabrik.de/russia/central-fed-district.html">https://download.geofabrik.de/russia/central-fed-district.html</a></div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#333333; font-family:Arial,Tahoma,Verdana,sans-serif; font-size:15px; font-style:normal; font-variant-caps:normal; font-variant-ligatures:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">Poly-file was downloaded from here: <a style="color: rgb(0, 91, 209); text-decoration: underline;" href="http://polygons.openstreetmap.fr/?id=51490">http://polygons.openstreetmap.fr/?id=51490</a>  (378 points) and looks absolutely valid. I’ve put all the files in one osmosis/bin folder and tried to execute command both with and without quotes and full path but still the same error. Tried with version 0.47.1 and 0.48.3. Poly file _exists_ in the folder though error occurs.</div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#333333; font-family:Arial,Tahoma,Verdana,sans-serif; font-size:15px; font-style:normal; font-variant-caps:normal; font-variant-ligatures:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"> </div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#333333; font-family:Arial,Tahoma,Verdana,sans-serif; font-size:15px; font-style:normal; font-variant-caps:normal; font-variant-ligatures:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"><div>ряЁ 29, 2021 2:01:05 PM org.openstreetmap.osmosis.core.Osmosis run<br>INFO: Osmosis Version 0.47.1-1-g80be2971<br>ряЁ 29, 2021 2:01:06 PM org.openstreetmap.osmosis.core.Osmosis run<br>INFO: Preparing pipeline.<br>ряЁ 29, 2021 2:01:06 PM org.openstreetmap.osmosis.core.Osmosis run<br>INFO: Launching pipeline execution.<br>ряЁ 29, 2021 2:01:06 PM org.openstreetmap.osmosis.core.Osmosis run<br>INFO: Pipeline executing, waiting for completion.<br>ряЁ 29, 2021 2:01:06 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion<br>SEVERE: Thread for task 1-read-pbf failed<br>org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to read from polygon file E:\3d\osmosis-0.47.1\bin\mo.poly.<br>        at org.openstreetmap.osmosis.areafilter.common.PolygonFileReader.loadPolygon(PolygonFileReader.java:141)<br>        at org.openstreetmap.osmosis.areafilter.v0_6.PolygonFilter.process(PolygonFilter.java:66)<br>        at org.openstreetmap.osmosis.core.container.v0_6.BoundContainer.process(BoundContainer.java:59)<br>        at org.openstreetmap.osmosis.areafilter.v0_6.AreaFilter.process(AreaFilter.java:125)<br>        at crosby.binary.osmosis.OsmosisBinaryParser.parse(OsmosisBinaryParser.java:259)<br>        at org.openstreetmap.osmosis.osmbinary.BinaryParser.handleBlock(BinaryParser.java:64)<br>        at org.openstreetmap.osmosis.osmbinary.file.FileBlock.process(FileBlock.java:135)<br>        at org.openstreetmap.osmosis.osmbinary.file.BlockInputStream.process(BlockInputStream.java:34)<br>        at crosby.binary.osmosis.OsmosisReader.run(OsmosisReader.java:45)<br>        at java.lang.Thread.run(Unknown Source)<br>Caused by: java.io.FileNotFoundException: E:\3d\osmosis-0.47.1\bin\mo.poly (The system cannot find the file specified)<br>        at java.io.FileInputStream.open0(Native Method)<br>        at java.io.FileInputStream.open(Unknown Source)<br>        at java.io.FileInputStream.<init>(Unknown Source)<br>        at java.io.FileReader.<init>(Unknown Source)<br>        at org.openstreetmap.osmosis.areafilter.common.PolygonFileReader.loadPolygon(PolygonFileReader.java:85)<br>        ... 9 more</div><div>ряЁ 29, 2021 2:01:06 PM org.openstreetmap.osmosis.core.Osmosis main<br>SEVERE: Execution aborted.<br>org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks failed.<br>        at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pipeline.java:146)<br>        at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92)<br>        at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)<br>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br>        at java.lang.reflect.Method.invoke(Unknown Source)<br>        at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)<br>        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)<br>        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)<br>        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)<br>        at org.codehaus.classworlds.Launcher.main(Launcher.java:47)</div></div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#333333; font-family:Arial,Tahoma,Verdana,sans-serif; font-size:15px; font-style:normal; font-variant-caps:normal; font-variant-ligatures:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"> </div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#333333; font-family:Arial,Tahoma,Verdana,sans-serif; font-size:15px; font-style:normal; font-variant-caps:normal; font-variant-ligatures:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">--<br>Sincerely,</div><div style="-webkit-text-stroke-width:0px; background-color:#ffffff; color:#333333; font-family:Arial,Tahoma,Verdana,sans-serif; font-size:15px; font-style:normal; font-variant-caps:normal; font-variant-ligatures:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">Yaroslav Minin</div></div></BODY></HTML>