Module:Location map/data/Callistea/doc

From RabastorWiki
< Module:Location map‎ | data/Callistea
Revision as of 03:47, 6 July 2015 by Admin (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the documentation page for Module:Location map/data/Callistea

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 should have boundaries of 0, 204.8, 0, 204.8.

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.

Like so:

d = int(156.9°) = 156°
m = int((156.9° - 156°) × 60) = 54'
156.9° = 156° 54'