Template:Coord-doc-dim: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Stepheng3
(unit conversion and wikilink)
meta>Stepheng3
(document "km" suffix and use in two examples)
Line 1: Line 1:
The <code>dim:</code> parameter defines the [[diameter]] (in meters) of a viewing circle centered on the coordinate. [[tswiki:GeoHack|GeoHack]] uses <code>dim:</code> to select a [[Scale (map)|map scale]] such that the viewing circle appears roughly {{convert|10|cm|in|0}} in diameter on a 72 [[Dots per inch|dpi]] computer monitor.
The <code>dim:</code> parameter defines the [[diameter]] of a viewing circle centered on the coordinate. While the default unit of measurement is [[metre]]s, the "km" suffix may be added to specify [[kilometre]]s.
 
[[tswiki:GeoHack|GeoHack]] uses <code>dim:</code> to select a [[Scale (map)|map scale]] such that the viewing circle appears roughly {{convert|10|cm|in|0}} in diameter on a 72 [[Dots per inch|dpi]] computer monitor.


If [[#scale:N|scale:]] is set, it overrides any <code>dim:</code> setting.
If [[#scale:N|scale:]] is set, it overrides any <code>dim:</code> setting.
Line 11: Line 13:
|-
|-
| [[Western Hemisphere]]
| [[Western Hemisphere]]
|align=right| 10000000
|align=right| 10,000 kilometres
| <nowiki>{{coord|0|N|90|W|dim:10000000}}</nowiki>
| <nowiki>{{coord|0|N|90|W|dim:10000km}}</nowiki>
| {{coord|0|N|90|W|dim:10000000}}
| {{coord|0|N|90|W|dim:10000000}}
|-
|-
| [[Ohio]]
| [[Ohio]]
|align=right| 400000
|align=right| 400 kilometres
| <nowiki>{{coord|40.5|-82.5|dim:400000}}</nowiki>
| <nowiki>{{coord|40.5|-82.5|dim:400km}}</nowiki>
| {{coord|40.5|-82.5|dim:400000}}
| {{coord|40.5|-82.5|dim:400000}}
|-
|-
| [[Dresden]]
| [[Dresden]]
|align=right| 20000
|align=right| 20000 metres
| <nowiki>{{coord|51.033|13.73|dim:20000}}</nowiki>
| <nowiki>{{coord|51.033|13.73|dim:20000}}</nowiki>
| {{coord|51.033|13.73|dim:20000}}
| {{coord|51.033|13.73|dim:20000}}
|-
|-
| [[Statue of Liberty]]
| [[Statue of Liberty]]
|align=right| 100
|align=right| 100 metres
| <nowiki>{{coord|40.6892|-74.0445|dim:100}}</nowiki>
| <nowiki>{{coord|40.6892|-74.0445|dim:100}}</nowiki>
| {{coord|40.6892|-74.0445|dim:100}}
| {{coord|40.6892|-74.0445|dim:100}}
|-
|-
|}
|}

Revision as of 20:58, 1 March 2010

The dim: parameter defines the diameter of a viewing circle centered on the coordinate. While the default unit of measurement is metres, the "km" suffix may be added to specify kilometres.

GeoHack uses dim: to select a map scale such that the viewing circle appears roughly 10 centimetres (4 in) in diameter on a 72 dpi computer monitor.

If scale: is set, it overrides any dim: setting.

Samples
Subject D Markup Result
Western Hemisphere 10,000 kilometres {{coord|0|N|90|W|dim:10000km}} Lua error: callParserFunction: function "#coordinates" was not found.
Ohio 400 kilometres {{coord|40.5|-82.5|dim:400km}} Lua error: callParserFunction: function "#coordinates" was not found.
Dresden 20000 metres {{coord|51.033|13.73|dim:20000}} Lua error: callParserFunction: function "#coordinates" was not found.
Statue of Liberty 100 metres {{coord|40.6892|-74.0445|dim:100}} Lua error: callParserFunction: function "#coordinates" was not found.