NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi,

I'm trying to get footprints with landuse tag within sample bounding box with query below:

[out:json][timeout:180];
(
  way(poly:"50.859515 18.568600 50.859515 18.580753 50.862946 18.580753 50.862946 18.568600 50.859515 18.568600")["landuse"];(._;>;);
  relation(poly:"50.859515 18.568600 50.859515 18.580753 50.862946 18.580753 50.862946 18.568600 50.859515 18.568600")["landuse"];(._;>;);
);
out body;

Unfortunately, returned ways are out of my bounding box, as shown on the picture below (bbox is approximately red square) so the question is how to filter results to retrieve data only in my bounding box range?

alt text

asked 10 Feb '20, 13:19

dnstankiewicz's gravatar image

dnstankiewicz
11112
accept rate: 0%

1

Would you actually want area objects that are completely contained in the bounding box only? If you are simply going to do your work within the bounding box, you are supposed to further process this data elsewhere.

(10 Feb '20, 13:35) Kovoschiz

Hi, I need to do following steps: 1. provide bounding box to my algorithm 2. it downloads data from OSM and filter only landuse in (forest,farmland) 3. union all territory with this tags 4. apply another algorithm to solar panel placement

Any suggestions on how to keep only territories within bounding box and then union it into one shape? Thanks for help!

(11 Feb '20, 08:47) dnstankiewicz

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×66
×30
×18
×11

question asked: 10 Feb '20, 13:19

question was seen: 1,178 times

last updated: 11 Feb '20, 08:47

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum