展示风力发电机所在市政府的轮廓。

huangapple go评论44阅读模式
英文:

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;

outline

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;   

huangapple
  • 本文由 发表于 2023年5月15日 00:06:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/76248457.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定