File:Maxbe-stubaier-beschriftung en.png

From OpenStreetMap Wiki
Jump to: navigation, search
Original file(820 × 780 pixels, file size: 343 KB, MIME type: image/png)


Illustration of how the labelling (capital letters, darkgrey-semitransparent) of mountain ranges, e.g. the relation Stubaier Alpen, could be done (rendered with mit, Data OpenStreetMap, hillshading data from ASTER, a product of METI and NASA). Shown position on the slippy map, description of the whole experimental map rendering project (German only, sorry).

Other versions: deutsche Version.

Description of the process

This is in an early, experimental state. The idea is based on this forum topic:

Some relations like name=Wetterstein;place=region;region:type=mountain_area;type=multipolygon (relation example relation) have been created in the OSM data (by Netzwolf).


  1. determine the relation's boundary
  2. for all four main geographic directions: search the points on the boundary with maximum distance to the centroid of the relation's area
  3. search the two points with maximum distance from each other out of those four points (north-south or west-east; note that e.g. the west point could be identical to the north point)
  4. draw a circle through both points and through the centroid
  5. Construct a segment S1 of this circle: end points are the two points on the boundary.
  6. Make another segment S2 but with only 60 % of S1's length and centred on S1 (i.e. 20 % space on both ends)
  7. place the label's letters on the segment S2, with: the orientation of the letters depends on the position of segment S2 on the circle, the size of the letters depends on the length of segment S2.

Some more fiddling would be needed to also use this for sub-groups (e.g. one could replace “Wetterstein” and “Allgäuer Alpen” by the higher-level name “Alpen”) or for mountain ranges with exceptional shapes.


Map data © OpenStreetMap Contributors,

Featured image

Image Star Alpha.png
This is a Featured image, which means that it has been identified as one of the best examples of OpenStreetMap mapping, or that it provides a useful illustration of the OpenStreetMap project. If you know another image of similar quality, you can nominate it on Featured image proposals.

Front-page image for week 29 of 2013 (15–21 Jul.).

Image descriptions

Add a description

File history

Click on a date/time to view the file as it appeared at that time.

current15:38, 11 July 2013Thumbnail for version as of 15:38, 11 July 2013820 × 780 (343 KB)Maxbe (talk | contribs)Typo and american to british english
15:19, 9 July 2013Thumbnail for version as of 15:19, 9 July 2013820 × 780 (343 KB)Maxbe (talk | contribs)Labeling of mountain regions, e.g. the {{relation|tools=no|2127978|Stubaier Alpen}} (rendered with mit, Data [ OpenStreetMap], Hillshading data from ASTER, a produkt of METI and NASA). [[User:M...
  • You cannot overwrite this file.