Ja:Beginners Guide 1.4.1

From OpenStreetMap

Jump to: navigation, search

タグの追加

前の節では、OpenStreetMapの地形要素について紹介しました。次はOpenStreetMapのタグ付けの方法について少し紹介します。タグ付けについてはTaggingのページでも紹介されています。タグページからリンクされているMap_Featuresのページで説明されているタグの一覧がOSMコミュニティーで広く受け入れられているタグの大部分です。Map_Featuresページで紹介されている例の多く、特に道路の例はほとんどイギリスのものです。他の国のユーザーはTaggingのページを見てその国にあったタグ付けの参考にすると良いでしょう。

地形オブジェクトの種類

OpenStreetMapのタグ付けは3つのデータ型について行います。

  • ノード(node) 地図上のある点を示すのに使われます。例:
  • ウェイ(way)は地図上の線状のものを示すのに使われます。例:
    • 高速道路はタグhighway=motorwayを付けたウェイを使って表します。
    • はkey="waterway", value="river"を付けたウェイを使って表します。
  • エリア(area) 閉じたウェイ(way)は地図上のある領域を示すのに使われます。例:
    • 湖はタグnatural=waterを付けたエリアを使って表します。
    • 市区町村はタグplace=townを付けたエリアを使って表す事ができます。

タグの種類

There are many tags, but they all serve different purposes. There are 4 different types of tags that frequently appear. (The terminology used here isn’t OSM recognised. It is altered to make better if necessary.)

  • Element Tags: These tags state 1 bit of information each. (e.g. oneway=true, lanes=2)
  • Pre-defined Tags: These tags are shortcuts which have the value of many element tags. (e.g. highway=motorway, which would be the same as lanes=3 oneway=true maxspeed=112 etc. when used in the UK)
  • Tweaking Tags: These tags can be used to make a pre-defined tags correct. (e.g. motorbike=false may be used along with highway=motorway where motorbikes can’t go, assuming there is such a place. lanes=2 may be used for smaller motorways, such as ones commonly found in Scotland)
  • レンダリング用タグ: このタグは地図に何が表示されるかではなく、レンダラーがどのように表示するかを指定するために使われます。(例:layer=1)

Tags are also designed to be used in different ways. Some should be used for nodes, some for ways, and others for closed ways.


There are many tags that can be used to list all the facts about a road (or whatever you happen to be mapping), but to start with, and just to get your first render you only need to add a highway tag for a road. From this point on, you should be able to see your work rendering on OSM's maps, and add more and more details.



  • Q: I have added tags to the nodes, yet it doesn’t show up.
  • A: You should add tags that apply to the whole way, to the way itself, not the nodes that it is made from. Tagging nodes is for marking specific spots, such as a petrol station.

戻る

Personal tools
recent changes