[OSM-dev] Overpass filter by area A or area B
Pierre Béland
pierzenh at yahoo.fr
Wed Sep 13 22:55:45 UTC 2017
Bonjour François
I revised your query as below, making the query in two steps and adding maxsize parameter. Even then, I have problem since relation for France metropolitaine requires a lot of memory. If we try to increase significantly this value, the server rejects the query since it takes too much resources.
regard
Pierre
[maxsize:400000000];
area["wikidata"="Q212429"][admin_level=3]->.area_1;
way(area.area_1);
out geom;
area["wikidata"="Q212582"][admin_level=3]->.area_2;
way(area.area_2);
out geom;
De : François Lacombe <fl.infosreseaux at gmail.com>
À : dev at openstreetmap.org
Envoyé le : mercredi 13 Septembre 2017 17h49
Objet : [OSM-dev] Overpass filter by area A or area B
Hi all,
I wonder how to filter objects in several areas in Overpass API.
I assume this query:
area["wikidata"="Q212429"][admin_level=3]->.area_1;
area["wikidata"="Q212582"][admin_level=3]->.area_2;
way(area.area_1,area.area_2);
out geom;
would give all ways contained in area_1 and area_2 as results.
Is this possible ?
All the best
François_______________________________________________
dev mailing list
dev at openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20170913/3fbd451f/attachment.html>
More information about the dev
mailing list