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

allow querying by object area/way length #464

Closed
matkoniecz opened this issue Feb 25, 2018 · 6 comments
Closed

allow querying by object area/way length #464

matkoniecz opened this issue Feb 25, 2018 · 6 comments

Comments

@matkoniecz
Copy link

Usecase example: finding mistagging like https://www.openstreetmap.org/way/222795099#map=19/52.51666/13.41946&layers=N or excluding them in program processing OSM data (I wanted to add this functionality in StreetComplete).

@matkoniecz matkoniecz changed the title allow querying by object area/way lengt allow querying by object area/way length Feb 25, 2018
@mmd-osm
Copy link
Contributor

mmd-osm commented Feb 25, 2018

I believe we already have an issue for this, so marking as duplicate of #237.

Not sure what you mean by area “length”. Care to elaborate?

@matkoniecz
Copy link
Author

I thought about two cases: way is closed, filtering by area is available and second: way is not closed and length is available

@mmd-osm
Copy link
Contributor

mmd-osm commented Feb 25, 2018

A closed way doesn’t necessarily imply an area in an Overpass sense, e.g. if there’s no name tag... there are dedicated rules for area creation.

@mmd-osm
Copy link
Contributor

mmd-osm commented Mar 4, 2018

Future syntax for non-closed ways with a certain min length will look as follows:

way(if:!is_closed() && length() > 10);
out geom;

Check out the following example: http://overpass-turbo.eu/s/wGT

As there's really nothing left to do here, kindly request to close this issue. Thanks!

@matkoniecz
Copy link
Author

Thanks! Is it feasible to allow filtering by size (area) of closed way - like buildings, lakes etc?

@mmd-osm
Copy link
Contributor

mmd-osm commented Mar 4, 2018

I don't recall if Roland already implemented such a function for area sizes, will cross check.

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

2 participants