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

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 '20, 21:29

livmilan's gravatar image

livmilan
26223
accept rate: 0%

edited 22 Jan '20, 21:30

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:

×483
×213
×92

question asked: 22 Jan '20, 21:29

question was seen: 850 times

last updated: 22 Jan '20, 21:30

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