Template:Coord-doc-dim: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Stepheng3
(correction based on testing)
m (19 revisions imported)
 
(16 intermediate revisions by 6 users not shown)
Line 1: Line 1:
An alternative to <code>scale:</code>, <code>dim:</code> defines the [[diameter]] of a circle in meters centered on the coordinate. The Geo Hack mapping tool selects map scales best able to display the circle. <code>dim:</code> is particularly useful when geo-coding linear features and areas. <code>scale:</code> overrides <code>dim:</code> when both are set.
The <code>dim:</code> parameter defines the [[diameter]] of a viewing circle centered on the coordinate. While the default unit of measurement is metres, the <code>km</code> suffix may be appended to indicate kilometres.


Examples:
[[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 no <code>dim:</code>, <code>type:</code>, or <code>scale:</code> parameters are provided, GeoHack uses its default viewing circle of {{convert|30|km|mi}}.
* [[Mill Ends Park]] dim=0.61 (the smallest park in the world)
 
* [[Ohio]] dim=400000
{| class="wikitable"
* [[Dresden]] dim=20000  
|+ Samples
* [[Statue of Liberty]] dim=100.
! Subject
! View diameter
! Markup
! Result
|-
| [[Western Hemisphere]]
| style="text-align:right;" | {{convert|10000|km|mi}}
| <nowiki>{{coord|0|N|90|W|dim:10000km}}</nowiki>
| {{coord|0|N|90|W|dim:10000km}}
|-
| [[Ohio]]
| style="text-align:right;" | {{convert|400|km|mi}}
| <nowiki>{{coord|40.5|-82.5|dim:400km}}</nowiki>
| {{coord|40.5|-82.5|dim:400km}}
|-
| [[Dresden]]
| style="text-align:right;" | {{convert|20000|m|mi}}
| <nowiki>{{coord|51.03|13.73|dim:20000}}</nowiki>
| {{coord|51.03|13.73|dim:20000}}
|-
| [[Statue of Liberty]]
| style="text-align:right;" | {{convert|100|m|ft}}
| <nowiki>{{coord|40.6892|-74.0445|dim:100}}</nowiki>
| {{coord|40.6892|-74.0445|dim:100}}
|-
|}

Latest revision as of 01:07, 3 September 2020

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 appended to indicate 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 no dim:, type:, or scale: parameters are provided, GeoHack uses its default viewing circle of 30 kilometres (19 mi).

Samples
Subject View diameter Markup Result
Western Hemisphere 10,000 kilometres (6,200 mi) {{coord|0|N|90|W|dim:10000km}} Lua error: callParserFunction: function "#coordinates" was not found.
Ohio 400 kilometres (250 mi) {{coord|40.5|-82.5|dim:400km}} Lua error: callParserFunction: function "#coordinates" was not found.
Dresden 20,000 metres (12 mi) {{coord|51.03|13.73|dim:20000}} Lua error: callParserFunction: function "#coordinates" was not found.
Statue of Liberty 100 metres (330 ft) {{coord|40.6892|-74.0445|dim:100}} Lua error: callParserFunction: function "#coordinates" was not found.