I want to perform some analyses on the cycleways in my town. To do this I exported the cycleways using the following overpass query:

[out:json];
area[name="Segrate"];
way["highway"="cycleway"](area);
(._;>;);
out;

I noticed that some of the returned cycleways are outside of the town, which is very clear if you run this query, in which I also draw the town boundaries.

It appears that if the cycleway has a part inside the area and one outside, also the outer part is included in the query response.

  • Is there a way to limit the response of the query regarding a area, to the parts of the highways strictly inside that area?
  • Alternatively, how can I use the boundaries as a polygon to limit the returned highways at the nodes that are inside?

asked 22 Jan, 21:29

livmilan's gravatar image

livmilan
2623
accept rate: 0%

edited 22 Jan, 21:30

Be the first one to answer this question!
toggle preview

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:

×389
×180
×79

question asked: 22 Jan, 21:29

question was seen: 231 times

last updated: 22 Jan, 21:30

powered by OSQA