Module talk:Location map/data/Canada Alberta
{{WikiProject banner shell|
{{WikiProject Canada|geography=yes|ab=yes}}
{{WikiProject Maps}}
}}
Transverse Mercator conversion
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:
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:
{{Location map+ | Canada Alberta TM
|caption =
|float = center
|places =
{{Location map~ | Canada Alberta TM
|label = SW
|mark = Western Canada Map Assets City.svg
|marksize = 4
|position = left
|lat_deg = 48.64415605813904
|lon_deg = -120.43340490149893}}
{{Location map~ | Canada Alberta TM
|label = NW
|mark = Western Canada Map Assets City.svg
|marksize = 4
|position = left
|lat_deg = 60.26281545970971
|lon_deg = -122.24145537536245}}
{{Location map~ | Canada Alberta TM
|label = SE
|mark = Western Canada Map Assets City.svg
|marksize = 4
|position = right
|lat_deg = 48.64415605813904
|lon_deg = -109.56659509850107}}
{{Location map~ | Canada Alberta TM
|label = NE
|mark = Western Canada Map Assets City.svg
|marksize = 4
|position = right
|lat_deg = 60.26281545970971
|lon_deg = -107.75854462463752}}
{{Location map~ | Canada Alberta TM
|label = Fort McMurray
|mark = Western Canada Map Assets City.svg
|marksize = 4
|position = right
|lat_deg = 56.726389
|lon_deg = -111.380278}}
{{Location map~ | Canada Alberta TM
|label = Medicine Hat
|mark = Western Canada Map Assets City.svg
|marksize = 4
|position = bottom
|lat_deg = 50.041667
|lon_deg = -110.6775}}
{{Location map~ | Canada Alberta TM
|label = Kelowna
|mark = Western Canada Map Assets City.svg
|marksize = 4
|position = bottom
|lat_deg = 49.888056
|lon_deg = -119.495556}}
}}
If this seems like an improvement, I would appreciate if someone with template privileges could make this change. Thanks!
Template-protected edit request on 8 February 2021
{{edit template-protected|Module:Location map/data/Canada Alberta|answered=yes}}
Topo map: image1 = 'Canada Alberta relief location map - transverse mercator proj.svg' SANtosito (talk) 15:07, 8 February 2021 (UTC)
:File:Yes check.svg Done Izno (talk) 22:54, 9 February 2021 (UTC)