Closed andrzejkurczewski-tomtom closed 1 year ago
I can reproduce the problem, so there is definitely a bug there. Looks to me like some rounding problem at the bounding box edges or so. This needs some investigation.
Maybe one more useful remark - it seems the problem doesn't occur with simple
strategy.
@andrzejkurczewski-tomtom Are you sure? When I tested it, it happened with the simple
strategy, too.
Croatia (exactly the same geojson) was the only country I checked with simple
:
osmium extract --strategy simple -c extract_config.json input.pbf
And that was my result:
simple_paths.zip
But of course I cannot be sure it won't happen for simple
for any other input.
I believe this is fixed in the current master. Can you check whether it works for you?
No feedback, so assuming this has been fixed.
Hi @joto, sorry for the late response. I can confirm it works for me with 1.15 release, thanks a lot!
What version of osmium-tool are you using?
osmium version 1.14.0 libosmium version 2.17.3
What operating system version are you using?
CentOS Linux 7
What did you do exactly?
I downloaded the Planet PBF from https://planet.openstreetmap.org/ I used osmium to extract Croatia using
complete_ways
strategy:where config is as follows:
Find geojson attached: HRV.zip It should be the same as country boundary in OSM, but it has a few months already.
What did you expect to happen?
I expected an output file to contain ways and nodes located in or crossing the Croatia border.
What did happen instead?
There are ways outside Croatia (located in Slovenia, Italy and Austria) included. Below you can find the resulting PBF filtered with![unexpected_paths](https://user-images.githubusercontent.com/84323323/205985131-dcd729de-601c-4081-809f-5df69f5d2bbd.png)
osmfilter
forhighway=path
only, for easier visualization: complete_paths.zip And the visualization:Sorry for such large-scale example. I failed to reproduce this issue when extracting smaller areas. However, it did reproduce for multiple country polygons, including Austria, Czechia, Greece, Hungary or Italy.
In all cases the unexpected ways seem to cross the north edge of the country bounding box.