Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clipping by Polygon may leave geometries outside polygon #7

Open
craig-o opened this issue Aug 2, 2020 · 2 comments
Open

Clipping by Polygon may leave geometries outside polygon #7

craig-o opened this issue Aug 2, 2020 · 2 comments

Comments

@craig-o
Copy link

craig-o commented Aug 2, 2020

  1. Download the following file

https://download.geofabrik.de/russia/northwestern-fed-district-latest.osm.pbf

  1. Clip by polygon

osmconvert -v ./northwestern-fed-district-latest.osm.pbf -B=Russia_Nenets_Autonomous_Okrug.poly --complete-ways -o=nenetsconv.osm.pbf

  1. The output pbf contains geometries outside the original polygon, see the highlighted geometries in yellow.

nenets_poly_results
nenetsconv.zip
Russia_Nenets_Autonomous_Okrug.txt

osmconvert --help
osmconvert 0.8.7

@F-I-D-O
Copy link

F-I-D-O commented Aug 13, 2021

I can confirm that geometries outside (like completely away, not the ones crossing the border) also happens when specifying the rectangle with the -b option.

@biodranik
Copy link

Are these geometries a part of any relation inside polygon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants