0

With this query, I get the outline of the department of Yonne in France and the points representing the wind turbines.

I would also like to obtain the outline of the municipalities where the wind turbines are located.

[out:json];
area["ref:INSEE"="89"]->.a;
rel(area.a)["boundary"="administrative"]["admin_level"="6"];
out geom;
node(area.a)["power"="generator"]["generator:source"="wind"];
out geom;

This is an example:

outline of the municipalities

How can I modify the query?

0

1 Answer 1

1

I think I found the solution :

[out:json][timeout:25];
area["ref:INSEE"="89"]->.a;
rel(area.a)["boundary"="administrative"]["admin_level"="6"];
out geom;
node(area.a)["power"="generator"]["generator:source"="wind"]["generator:method"="wind_turbine"]["generator:output:electricity"];
out geom;
node(area.a)["power"="generator"]["generator:source"="wind"]["generator:method"="wind_turbine"]["generator:output:electricity"]->.b;
.b is_in->.c;
rel(pivot.c)["boundary"="administrative"]["admin_level"="8"];
out geom;
{{style:
node {width: 0;opacity:0;fill-opacity:0;}
node[power=generator] { icon-image: url("icons/maki/cross-18.png"); icon-width: 12;}
}}

Parc_eolien_outline

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.