Module talk:Location map/data/Canada Alberta

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconCanada: Alberta / Geography Template‑class
WikiProject iconThis module is within the scope of WikiProject Canada, a collaborative effort to improve the coverage of Canada on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis module does not require a rating on Wikipedia's content assessment scale.
Taskforce icon
This module is supported by WikiProject Alberta.
Taskforce icon
This module is supported by WikiProject Geography of Canada.
WikiProject iconMaps Template‑class
WikiProject iconThis module is within the scope of WikiProject Maps, a collaborative effort to improve the coverage of Maps and Cartography on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis module does not require a rating on Wikipedia's content assessment scale.

Transverse Mercator conversion[edit]

I've been working on updating and creating a lot of Western Canadian cartographic materials, and I think there are a couple things that could be improved with this locator module.

  • The vertically exaggerated equirectangular projection causes a lot of distortion, because of Alberta's large extent and high latitude.
  • The second-level divisions depicted on the map are census geometries of no administrative relevance.

So, I've created an alternative which minimizes distortion by using the province's standard EPSG:3401 transverse Mercator projection, and depicts the same assortment of counties and municipal districts (which do have administrative relevance) seen on other articles about Alberta local government. In order to test it, I've put a copy at Module:Location map/data/Canada Alberta TM, which was probably the wrong thing to do. The code can be seen below:

return {
	name = 'Alberta',
	x = '50 + 796 * 0.5 * ln( ( 1 + cos($1*(pi/180))*sin(($2+115)*(pi/180)) ) / ( 1 - cos($1*(pi/180))*sin(($2+115)*(pi/180)) ) )',
	y = '516.2 - 489*(atan(tan($1*(pi/180))/cos(($2+115)*(pi/180)))+0)',
	image = 'Alberta County Point Locator.svg'
}

Given the same lat/long pairs used by current Alberta locator calls, it renders as follows:

If this seems like an improvement, I would appreciate if someone with template privileges could make this change. Thanks!

Awmcphee (talk) 03:47, 7 June 2019 (UTC)[reply]

Template-protected edit request on 8 February 2021[edit]

Topo map: image1 = 'Canada Alberta relief location map - transverse mercator proj.svg' SANtosito (talk) 15:07, 8 February 2021 (UTC)[reply]

 Done Izno (talk) 22:54, 9 February 2021 (UTC)[reply]