如何在Overpass Turbo中筛选节点,仅显示道路和关系。

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

How to filter out nodes and only show ways and relations on Overpass Turbo

问题

当我尝试以下代码时,它显示了所有公交车站和火车站的方式、关系和节点

[out:json][timeout:25];
(
relation"operator"="Toronto Transit Commission";
);
out geom;

有没有办法过滤掉节点,只保留路径(方式和关系)?
英文:

I am trying to learn how to use Overpass Turbo, and as I was exploring, I thought it would be fun to map out my public transportation system to show the paths the busses cover. I only want to see the paths to show the extent the transportation system.

When I tried the following, It showed ways and relations as well as nodes covering all of the bus stops and train stations

[out:json][timeout:25];
(  
relation["operator"="Toronto Transit Commission"]({{bbox}});
);
out geom;

Is there any way to filter out the nodes and only keep the paths (ways and relations)?

答案1

得分: 1

你可以通过MapCSS来隐藏所有节点。

在你的查询末尾添加以下的MapCSS样式:

{{style:
node {
  opacity:0.0;
  fill-opacity:0.0;
}
}}
英文:

You can hide all nodes with the help of MapCSS.

Add the following MapCSS styling to the end of your query:

{{style:
node {
  opacity:0.0;
  fill-opacity:0.0;
}
}}

huangapple
  • 本文由 发表于 2023年7月18日 09:40:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/76709038.html
匿名

发表评论

匿名网友

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

确定