Th:Beginners Guide 1.4.1

From OpenStreetMap Wiki
Jump to navigation Jump to search

เพิ่มป้ายกำกับ (tag)

ในตอนที่แล้ว คุณได้เรียนรู้เกี่ยวกับส่วนประกอบภูมิศาสตร์ (geo element) ของ OpenStreetMap ตอนนี้ได้เวลาสำหรับการเรียนรู้เพิ่มเติมเกี่ยวกับแนวทางการติดป้ายกำกับของ OSM (OpenStreetMap's Tagging Scheme) แนวทางการติดป้ายกำกับพื้นฐานสามารถดูได้ที่หน้า Tagging หน้าดังกล่าวจะลิงก์ไปยังหน้า Map Features ซึ่งแสดงรายการของคำสำคัญ (key) เกือบทั้งหมดที่ชุมชุน OSM ยอมรับ ตัวอย่างจำนวนมากในหน้า Map Features โดยเฉพาะที่เกี่ยวกับถนน นั้นเป็นตัวอย่างเฉพาะสำหรับสหราชอาณาจักร ผู้ใช้ในประเทศอื่นอาจจะอยากดูที่หน้า Tagging เพื่อดูคำแนะนำว่าจะประยุกต์แนวทางติดป้ายกำกับสำหรับประเทศตัวเองอย่างไร

ในกรณีที่มีข้อสงสัย สามารถปรึกษาชุมชน OSM ในท้องถิ่นของคุณได้ ดู WikiProject Thailand สำหรับเมืองต่างๆ ในประเทศไทย

ชนิดของ Geoobjects

OpenStreetMap's Tagging Scheme มีข้อมูล 3 ชนิดที่สามารถติดป้ายกำกับได้:

  • โหนด: Just a node/point used to mark a particular point on the map. For example:
  • เส้นตรง: เราใช้ way เพื่อเขียนเส้นตรงบนแผนที่ เช่น:
  • พื้นที่: A closed way to mark a particular area on the map. For example:

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.


  • ถาม: I have added highway=Unclassified, yet it doesn’t show up.
  • ตอบ: The renderers are case-sensitive, it should be highway=unclassified. All tags are lower-case, except for names.

  • ถาม: I have added tags to the nodes, yet it doesn’t show up.
  • ตอบ: 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. Also, note that the map layer may not be visually updated for some time (Rendering).

ก่อนหน้า | ต่อไป