This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How can i select all information inside a BBox with the least possible amount that is outside

0

Hi, i really want to get the Data that is inside a BBox but the least count possible that is NOT inside. ATM I'am using something like:

(relation(south,west,north,east);way(south,west,north,east);node(south,west,north,east););( ._; >; );out meta;

It returns everything that is inside but way too much that i don't need. Is there a fast way to reduce this select to those entries that are (mostly) only inside the Bbox?

asked 30 Jan '18, 17:22

xep84's gravatar image

xep84
11112
accept rate: 0%

yes and thanks.

(21 Feb '18, 12:37) xep84

One Answer:

3

are you referring to objects that are only partially in your BBox, but are still returned completely ? AFAIK, OverPass cannot split objects and will return e.g. complete ways when they have at least 1 node in the BBox, even when all the others are not.

Thus you will have to do that yourself

answered 31 Jan '18, 04:17

escada's gravatar image

escada
19.0k16166302
accept rate: 21%

Source code available on GitHub .