Wikipedia:WikiProject OpenStreetMap

From Wikipedia, the free encyclopedia

An OpenStreetMap image of Cambridge
An OpenStreetMap image of Cambridge

This project is for anyone who wants to create maps for Wikipedia using data from OpenStreetMap. OpenStreetMap offers raw mapping data with a creative commons license, and also provides the tools to create rendered map images. Such a rendering is a derivative work which can be published here on wikipedia with the same open license. See the OpenStreetMap article for more information.

The parent project is Wikipedia:WikiProject Maps

Contents

[edit] Usage

Map images derived from OpenStreetMap data are in Category:OpenStreetMap maps.

The category at Wikimedia Commons is also Category:OpenStreetMap maps.

[edit] Wanted

If you want a map for a particular article, and don't know how to or don't want to create it yourself, then add it to this list. With luck, someone will notice and make a map for you sooner or later.

London

OSM has good coverage of Central London, although the renderings are little untidy in many places. Wikipedia has hundreds of articles about London places. For example Category:Streets in London. We should work through these lists and put in maps where we can.

Some important london places to add a map to: Covent Garden, Downing Street, Fleet Street, Buckingham Palace, Portobello Road, Regent Street, Russell Square, Shaftesbury Avenue, Tottenham Court Road, Trafalgar Square, Charing Cross Road, Commercial Street (London), Connaught Square.

[edit] In progress

Maps for the following articles are being worked on by someone. If you want to help them contact them via their talk page:

Wikipedia:WikiProject OpenStreetMap/Town maps is a proposal for adding maps to an entire area at once - Ojw (talk) 19:25, 11 February 2008 (UTC)

[edit] How To

An outline of all the steps in the OpenStreetMap/Wikipedia mapping process:


  • Browse the maps on the front page of openstreetmap.org

If the area you are interested in has not been mapped yet...

  • Visit all the streets in an area, with a GPS unit.
  • Upload GPS tracks to OSM
  • Use the OSM editing tools to markup and tag the nodes, segments, and ways of the map

Then you can either...

  • Render as SVG using the tool called Osmarender
  • convert SVG to PNG (e.g. by screenshot)

...or you can

  • Wait for your new data to appear on the main openstreetmap.org map (takes a few days)

If there is a good looking reasonably complete map available on openstreetmap...

  • Adjust the zoom to show details as desired
  • Simply take a screenshot (to [prnt scrn], paste into paint software, then save as PNG)

Finally....

That is the full workflow, but some of these steps may not be necessary (as described in the next sections)

[edit] Getting Map Renderings

As mentioned above, you can either figure out how to use the Osmarender tool to generate a map in SVG form, or simply screenshot the map browsing interface of openstreetmap.org . Osmarender offers a few advantages.

  • The SVG vector representation can be edited in more powerful ways, than a rasterised image, allowing you to fix up the roads and labels if there are some rendering quirks causing problems.
  • Without using the screenshot approach, you can create a really big map image, larger than the screen dimensions if you wish (although this is not normally desirable for most wikipedia articles)
  • If you are adding new map data to OSM, running the rendering yourself is a lot quicker. The OpenStreetMap browser shows two different renderings (click the + icon to swap layers) The default Mapnik layer takes up to a week to be updated, assuming everything is running correctly. The 'Tiles@home' layer uses Osmarender, and so produces the same map appearance (as default configured osmarender). Tiles@home is updated through a different mechanism which may or may not be quicker. Either way you have to wait a while to see a rendering of your data.

...but screenshotting from the map browser is easier.

[edit] New 'Export' Tab

An example SVG formatted map image
An example SVG formatted map image

New! - The main OpenStreetMap map display now offers a very easy to use export tab, which allows you to export to SVG without the hassle of setting up Osmarender! This will probably be the prefered approach for adding maps to wikipedia.

An example SVG file created in this way Image:Holborn-viaduct-map.svg

Some points to note:

  • On the 'export' tab, find the SVG option under 'Mapnik'.
  • You can edit SVG images using Inkscape for example, to do post-export cleanup work. With the complexit of the SVG, this can be a slow memory hungry process.
  • You will need to 'ungroup' all objects to edit the individual details. You will also find you get a fair amount of extraneous extra bumpf off the edge of your exported area.
  • Some SVG features may render incorrectly on wikipedia despite working correctly in various other tools. For example, the one-way street arrows result in blue lines. You will need to delete/replace these by hand before uploading.
  • Street names have a seperate object for each individual letter, which makes it awkward to move them (unavoidable since they can be individually rotated)

[edit] Image Resolution and Detail

We can upload quite large images to wikipedia, but typically the reduced thumbnail appearing on an article will be fairly small. It is preferred that an image looks good and is useful in it's thumbnailed form, appearing on the article page itself. For maps this might mean the street name text should be readable in the thumbnail. Ideally people could print the article, and use the map.

That is actually quite a tricky restriction to work with. You will need to pick zoom level and thumbnail size carefully. The OSM rendering details are (in theory) designed to be maximally useful without any image scaling (at 100%) you may prefer to not apply any scaling in your [[Image:]] reference.

[edit] Templates

[edit] Interwiki linking to the OpenStreetMap wiki

The OpenStreetMap project has a wiki, which the community use for various project coordination purposes. Regional efforts to gather map data, are described in the wiki, with a page for each country, and further city-by-city granularity in some places. There are also a number of wiki pages going into some depth on GIS topics in general (although usually with some reference to OpenStreetMap usage)

Wikipedia, and all of the wikimedia projects, now support a interwiki linking syntax, for abbreviated linking to the OpenStreetMap wiki. This means you can use a linking syntax such as [[OpenStreetMap:Main Page]] to yeild a link : OpenStreetMap:Main Page. This simply makes it easier to link to the OpenStreetMap wiki, with this abbreviated syntax, rather than pasting in a full URL for a conventional external link.

[edit] Categories