Template:Location map data documentation: Difference between revisions

From RabastorWiki
Jump to navigation Jump to search
(Created page with "== Location map notes == Standard usage for location maps is to set the boundaries in such a way that any location can be replicated on the location map using pixel co-ordinat...")
 
No edit summary
 
Line 2: Line 2:
Standard usage for location maps is to set the boundaries in such a way that any location can be replicated on the location map using pixel co-ordinates.
Standard usage for location maps is to set the boundaries in such a way that any location can be replicated on the location map using pixel co-ordinates.


For example, a 2048x2048 image should have boundaries of 0, 204.8, 0, 204.8.
For example, a 2048x2048 image could have boundaries of 0, 204.8, 0, 204.8. This allows a point at pixel co-ordinates (1567,1056) to be plotted precisely with ease as (156.7,105.6)


This allows a point at pixel co-ordinates (1567,1056) to be plotted precisely in degrees and minutes by using the integer component as the number of degrees, and then multiplying the decimal component by 60 to get the number of minutes.
==Googledocs calculator==
 
Alternatively, use [https://docs.google.com/spreadsheets/d/1OL16hbMYVsqQXyVH3wq97H0Z_anhAPm070lh7HNQkPw/edit#gid=1209108751 this tool] to calculate everything, assuming you have the dimensions of your map image, and the pixel co-ordinates of each location to plot.
Like so:
 
<pre>d = int(156.9°) = 156°
m = int((156.9° - 156°) × 60) = 54'
156.9° = 156° 54'</pre>


==Degree/Minute conversion notes==
You can also use [[Template:Deg2Min|Deg2Min]] to get just the minute value isolated from the full decimal input, like so:
You can also use [[Template:Deg2Min|Deg2Min]] to get just the minute value isolated from the full decimal input, like so:


<code><nowiki>{{Deg2Min|156.9}}</nowiki></code> returns {{Deg2Min|156.9}} which you can then plug directly into the template in the minutes parameter.
<code><nowiki>{{Deg2Min|156.9}}</nowiki></code> returns {{Deg2Min|156.9}} which you can then plug directly into the template in the minutes parameter.

Latest revision as of 05:39, 26 August 2016

Location map notes

Standard usage for location maps is to set the boundaries in such a way that any location can be replicated on the location map using pixel co-ordinates.

For example, a 2048x2048 image could have boundaries of 0, 204.8, 0, 204.8. This allows a point at pixel co-ordinates (1567,1056) to be plotted precisely with ease as (156.7,105.6)

Googledocs calculator

Alternatively, use this tool to calculate everything, assuming you have the dimensions of your map image, and the pixel co-ordinates of each location to plot.

Degree/Minute conversion notes

You can also use Deg2Min to get just the minute value isolated from the full decimal input, like so:

{{Deg2Min|156.9}} returns 27 which you can then plug directly into the template in the minutes parameter.