立交桥API中的“节点”和“方式”是什么

时间:2016-09-02 03:18:15

标签: openstreetmap overpass-api

我正在使用overpass api,想了解NodeWay之间的区别。下面是每个的xml片段。如果有人知道数字值的含义以及它们与现实世界的关系,我将不胜感激。带有标签的节点和没有标签的节点之间有什么区别。

<way id="4600886">
  <nd ref="27605443"/>
  <nd ref="30346321"/>
  <nd ref="1705297211"/>
  <nd ref="391210257"/>
  <nd ref="390384217"/>
  <nd ref="391210271"/>
  <nd ref="32343771"/>
  <nd ref="391210305"/>
  <nd ref="391210664"/>
  <nd ref="97175448"/>
  <tag k="highway" v="secondary"/>
  <tag k="lanes" v="2"/>
  <tag k="name" v="Days Road"/>
  <tag k="surface" v="asphalt"/>
</way>


<node id="18615430" lat="44.2384337" lon="-76.5411605">
  <tag k="created_by" v="r_coastlines"/>
  <tag k="source" v="PGS"/>
</node>

1 个答案:

答案 0 :(得分:3)

首先,这个问题根本不是关于Overpass API的问题 - 这是具有节点,方式和关系的普通OpenStreetMap对象模型。

WHERE columnname='$exdate' 这样的值没有任何意义,它们是数据库内部对象id。但是,A方式可以通过其id引用节点作为示例。地理纬度/经度信息始终存储在节点中。当然,如果某些节点在现实生活中代表一个类似节点的对象(可能是舒适性或者可能是停止标志),它们可能会有标签。对于高速公路(=使用多个节点的方式),各个节点根本不需要任何标记。

一些推荐阅读:

  1. http://wiki.openstreetmap.org/wiki/Elements
  2. http://wiki.openstreetmap.org/wiki/OSM_XML
  3. http://wiki.openstreetmap.org/wiki/OSM_file_formats
  4. https://www.mapbox.com/mapping/osm-data-model/
相关问题