Wikipedia:Creating shape maps from OpenStreetMap data: Difference between revisions

Content deleted Content added
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 11:
 
=== Method 1: Wikidata ===
The first thing to try is the easiest. There's a possibility your data is already linked and you're ready to map. Create a test map in [[Special:MyPage/sandbox|your sandbox]]. You'll need to use {{tl|Maplink}} together with the Wikidata ID of the shape. As an example: <kbd><nowiki>{{maplink|frame=yes|type=shape|id=Q160236}}</nowiki></kbd> If it displays, great. You can use the map and add parameters to make it display to your liking. If the map data does not populate, the below methods are straight-forward and reliable:
 
=== Method 2: Using the OpenStreetMap website ===
Line 19:
#Then search through the list for the shape you desire; selecting it will bring you the relation representing the shape, with the shape displayed beside it on the map.
 
=== Method 3: Using the OSM Relation Analyzer ===
If you already know how the relation would be tagged, the OSM Relation Analyzer can be more convenient. '''Note:''' this can only be used for shapes that are relations, not ways.
#Go to the [http://ra.osmsurround.org/ OSM Relation Analyzer].
Line 28:
 
== Part 2: If you need to create the shape ==
This optional step is only for shapes that are not already mapped on OpenStreetMap. Note that the entity you want to map must be an existing place in order to be accepted on OpenStreetMap, as OSM is not intended to map out historical, fictional, or unrecognized entities.
 
# Sign up or log-in to OpenStreetMap.
Line 49:
If the shape has a Wikidata item and the OpenStreetMap shape relation already has a <code>wikidata</code> tag set to that item's QID, you can embed a map of the shape directly onto a Wikipedia article as [[mw:Help:Extension:Kartographer#External data|external data]]. Use the {{tl|maplink}} template, setting the {{para|id}} parameter to the QID, such as <kbd>Q88466277</kbd>. Normally, changes to the route in OpenStreetMap are reflected in the article within about two days.
 
Example: <code><nowiki>{{maplink|frame=yes|frame-widthtype=180shape|id=Q126163|type=line|zoom=10|stroke-width=2|stroke-color=#00933CQ160409|text=[[NewCentral York City SubwayPark]] {{NYCS|4}} train}}</nowiki></code>
 
=== Method 2: Using Wikimedia Commons ===