英文:
Displaying outline of municipalities where wind turbines are located
问题
I can help you modify the query. Here's the translated query with your requested changes:
使用此查询,我可以获取法国Yonne部门的轮廓以及表示风力涡轮机的点。
[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;
[风力涡轮机所在市镇的轮廓](https://i.stack.imgur.com/05xv6.jpg)
你可以帮助我修改这个查询吗?
英文:
With this query, I get the outline of the department of Yonne in France and the points representing the wind turbines.
[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;
I would also like to obtain the outline of the municipalities where the wind turbines are located.
outline of the municipalities
Can you help me modify the query?
答案1
得分: 0
以下是您在overpass turbo中执行此操作的方式:https://overpass-turbo.eu/s/1vWa
。解释都在内联注释中...
[out:json] // json 输出格式
[bbox:{{bbox}}]; // 限制在overpass turbo中的当前边界框内
// 查找风力发电机
node["power"="generator"]["generator:source"="wind"];
// 并打印它们
out;
// 确定风力发电机所在的区域
is_in;
// 确定带有行政级别6或8的对应边界=administrative ways and relations。
wr(pivot)["boundary"="administrative"]["admin_level"~"[68]"];
// 并打印边界
out geom;
英文:
Here's how you would do it in overpass turbo: https://overpass-turbo.eu/s/1vWa
. Explanations are inline...
[out:json] // json output format
[bbox:{{bbox}}]; // restrict to current bounding box in overpass turbo
// find wind turbines
node["power"="generator"]["generator:source"="wind"];
// and print them
out;
// determine areas in which wind turbines are located
is_in;
// determine corresponding boundary=adminsitrative ways and relations with admin level 6 or 8.
wr(pivot)["boundary"="administrative"]["admin_level"~"[68]"];
// and print boundaries
out geom;
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论