tyrasd / overpass-turbo

A web based data mining tool for OpenStreetMap using the Overpass API.
https://overpass-turbo.eu
Other
933 stars 132 forks source link

Filter "relation" to only include "ways" #251

Open bjohas opened 8 years ago

bjohas commented 8 years ago

The documentation suggested that it's ok to post questions via github - thanks! It's not really a bug report, but I guess could usefully be added to the documentation. Here's my question:

I am trying to extract the national border for Ghana. This isn't a single way, but a relation. I've got the following query http://overpass-turbo.eu/s/gUu It produces a lot of POIs. If I select "Don't display small features as POIs." in the the settings, those disappear, so they were small features.

However, a few POIs were actual POIs. How can I filter those out? The POIs are labeled with ford=yes, but because they are POIs,

relation["boundary"="administrative"]["admin_level"="2"]["name"="Ghana"]["ford"!="yes"]

does not work. I suspect I need something like

(relation["boundary"="administrative"]["admin_level"="2"]["name"="Ghana"];)->.ghborder;

which then needs to be filtered for ways:

way.ghborder[....?....]

Could somebody give me a tip? Many thanks!

mmd-osm commented 8 years ago

The documentation suggested that it's ok to post questions via github

Can you post some pointers as to where you found this statement? According to the overpass turbo help page, Github is really meant for "feedback, report issues or ask for a particular feature".

The best place for HOWTO kind of questions would probably be one of the Community help sites mentioned here: http://wiki.openstreetmap.org/wiki/Overpass_API#Community:_where_can_I_get_help.3F . Also, there's a page with lots of examples: http://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_API_by_Example

I'd recommend to close this issue and continue on Help OSM instead.

bjohas commented 8 years ago

It was from the help! Thanks - that's fair. Ok to close!