Advanced

Updating polygons for Canada

Updating polygons for Canada
January 26, 2017 10:50PM
Currently in the process of updating polygons for Canada. All counties starting with Division and then a number will get a new/real name. The sources for the names are:
https://en.wikipedia.org/wiki/List_of_census_divisions_of_Alberta
https://en.wikipedia.org/wiki/List_of_census_divisions_of_Manitoba
https://en.wikipedia.org/wiki/List_of_census_divisions_of_Newfoundland_and_Labrador
https://en.wikipedia.org/wiki/List_of_census_divisions_of_Saskatchewan

An array of the translated names can be resolved by this copy/paste.
$divisionTranslations = array(
	// https://en.wikipedia.org/wiki/List_of_census_divisions_of_Alberta
	'Alberta' => array(
		1 => 'Medicine Hat',
		2 => 'Lethbridge',
		3 => 'Claresholm',
		4 => 'Hanna',
		5 => 'Strathmore',
		6 => 'Calgary',
		7 => 'Wainwright',
		8 => 'Red Deer',
		9 => 'Rocky Mountain House',
		10 => 'Lloydminster',
		11 => 'Edmonton',
		12 => 'Cold Lake',
		13 => 'Whitecourt',
		14 => 'Hinton',
		15 => 'Canmore',
		16 => 'Fort McMurray',
		17 => 'Slave Lake',
		18 => 'Grande Cache',
		19 => 'Grande Prairie',
		),
	// https://en.wikipedia.org/wiki/List_of_census_divisions_of_Manitoba
	'Manitoba' => array(
		1 => 'Eastern Manitoba',
		2 => 'Steinbach Area',
		3 => 'Pembina Valley',
		4 => 'Pilot Mound Area',
		5 => 'South West Westman',
		6 => 'Virden Area',
		7 => 'Brandon Area',
		8 => 'Central Manitoba',
		9 => 'Portage la Prairie Area',
		10 => 'Whitehorse Plains',
		11 => 'Winnipeg',
		12 => 'Beausejour Area',
		13 => 'Selkirk Area',
		14 => 'South Interlake Interlake Region',
		15 => 'Western Manitoba',
		16 => 'Roblin, Russell, Rossburn Area',
		17 => 'Dauphin',
		18 => 'North Interlake Area',
		19 => 'North East',
		20 => 'Swan River',
		21 => 'Flin Flon and North West',
		22 => 'Thompson and North Central',
		23 => 'Churchill and Northern Manitoba',
		),
	// https://en.wikipedia.org/wiki/List_of_census_divisions_of_Newfoundland_and_Labrador
	'Newfoundland and Labrador' => array(
		1 => 'Avalon Peninsula-St. John\'s',
		2 => 'Burin Peninsula - Marystown',
		3 => 'South Coast - Channel - Port aux Basques',
		4 => 'St. George\'s - Stephenville',
		5 => 'Humber District - Corner Brook',
		6 => 'Central Newfoundland - Grand Falls - Windsor',
		7 => 'Bonavista/Trinity - Clarenville',
		8 => 'Notre Dame Bay - Lewisporte',
		9 => 'Northern Peninsula - St. Anthony',
		10 => 'Labrador - Happy Valley - Goose Bay',
		11 => 'Nunatsiavut - Nain',
		),
	// https://en.wikipedia.org/wiki/List_of_census_divisions_of_Saskatchewan
	'Saskatchewan' => array(
		1 => 'Estevan',
		2 => 'Weyburn',
		3 => 'Assiniboia',
		4 => 'Maple Creek',
		5 => 'Melville',
		6 => 'Regina',
		7 => 'Moose Jaw',
		8 => 'Swift Current',
		9 => 'Yorkton',
		10 => 'Wynyard',
		11 => 'Saskatoon',
		12 => 'Battleford',
		13 => 'Kindersley',
		14 => 'Melfort',
		15 => 'Prince Albert',
		16 => 'North Battleford',
		17 => 'Lloydminster',
		18 => 'La Ronge',
		),
	);

Updating the names will most likely take a few days since the polygon data for Canada is of a very high resolution.

I found these three checkers that will get affected:
Tag ID: 23219
Script ID: 964, 1022

I have corrected the scripts, but not yet the config with tag id 23219. It's vogelbird's, I will contact him personally.
Re: Updating polygons for Canada
March 02, 2017 01:50AM
In responding to a checker request ( http://project-gc.com/forum/read?8,7715 ), I discovered that Ontario has a county "Haldimand-Norfolk" listed, which appears to be an old division which only existed until 2000. It should be separate counties "Haldimand" and "Norfolk" Can the polygons for Ontario be fixed, please?
Re: Updating polygons for Canada
March 02, 2017 01:59AM
Our data is Census data from 2011. They actually released a new file last year (2016). I have downloaded it and will try to look at it tomorrow.
Re: Updating polygons for Canada
March 02, 2017 02:09AM
Haldimand-Norfolk is one unioned area in their 2016 data as well.

They are seperate in OSM though. I will dig deeper into this matter tomorrow. It's already 2 hours pass bedtime.
Re: Updating polygons for Canada
March 02, 2017 02:16AM
I did not manage to leave this.

I looked into OSM. There are two issues with the OSM polygons.
1) The lower level administrative borders does not cover the country, not even closely. I don't know if the fact is that they have a lot of "no mans land" or OSM is incomplete. It's not usable anyway.
2) Their counties are silly small (compared to the big country). This rang a bell, it was a tactical decision to use census data with larger areas instead.

I looked most closely at Alberta, drew a map of all counties in it. It was ~45 of them. It covers about 10% of that state.

The conclusion is that we will update the census data to 2016. But you can't expect that particular polygon to be split.
Re: Updating polygons for Canada
March 02, 2017 03:47AM
After several hours of trying to import a broken GeoJson I have finally managed.

Both regions and counties will be updated for Canada. There should be no noticeable changes for regions. I honestly haven't tried to compare the counties since there are quite a few. I can provide with name tables if anyone wants them.
Sorry, you do not have permission to post/reply in this forum.