Template:BC Basemap: Difference between revisions
Jump to navigation
Jump to search
imported>ScottN No edit summary |
imported>ScottN No edit summary |
||
| Line 21: | Line 21: | ||
*-{{#expr:{{{long|123}}}+0.5*{{{width|10}}}/(111.12*0.6427)}} | *-{{#expr:{{{long|123}}}+0.5*{{{width|10}}}/(111.12*0.6427)}} | ||
*-{{#expr:{{{long|123}}}-0.5*{{{width|10}}}/(111.12*0.6427)}} | *-{{#expr:{{{long|123}}}-0.5*{{{width|10}}}/(111.12*0.6427)}} | ||
*{{#expr:{{{width| | *{{#expr:{{{width|10}}}*{{{scale|100}}}}} | ||
*{{#expr:{{{height| | *{{#expr:{{{height|10}}}*{{{scale|100}}}}} | ||
NOte: 0.6427 = cosine (50). This is required to adjust the longitude scale since the real world distance for one degree of longitude is proportional to the cosine of the lattitude. Ideally this would be a call to a cosine function but I don't think the wiki can do that so I've pre-programmed it to 50 degrees lattitude for now. | NOte: 0.6427 = cosine (50). This is required to adjust the longitude scale since the real world distance for one degree of longitude is proportional to the cosine of the lattitude. Ideally this would be a call to a cosine function but I don't think the wiki can do that so I've pre-programmed it to 50 degrees lattitude for now. | ||
</noinclude> | </noinclude> | ||
Revision as of 18:10, 20 February 2008
Parameters:
lat: lattitude of the center of the map long: longitude of the center of the map height: height of the map in km width: width of the map in km scale: map scale in pixels / km link: text to appear in the link
calculation notes
1 degree lattitude = 60 nautical miles = 111.12km 1 nautical mile = 1.85200 cos50 = 0.6427
- 50.044996400288
- 49.955003599712
- -123.07001151437
- -122.92998848563
- 1000
- 1000
NOte: 0.6427 = cosine (50). This is required to adjust the longitude scale since the real world distance for one degree of longitude is proportional to the cosine of the lattitude. Ideally this would be a call to a cosine function but I don't think the wiki can do that so I've pre-programmed it to 50 degrees lattitude for now.