Skip to content

Commit

Permalink
Fix map errors in Australia and Chile (electricitymaps#1000)
Browse files Browse the repository at this point in the history
In the data source for Australia all Capital Territory power plants are
included in the NSW area. This allows the 2 areas to be merged.

A natural earth update changed the code_hasc of the Arica y Parinacota
which is now corrected.

https://github.com/tmrowco/electricitymap/issues/977
https://github.com/tmrowco/electricitymap/issues/978
  • Loading branch information
systemcatch authored and corradio committed Jan 13, 2018
1 parent f222233 commit 9230b9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/app/countrytopos.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ exports.addCountryTopos = function(countries) {
countries['AM'] = getCountry('ARM')
countries['AW'] = getCountry('ABW')
// countries['AU'] = getCountry('AUS');
countries['AUS-ACT'] = getState('AUS', 'AU.AC');
countries['AUS-NSW'] = getState('AUS', 'AU.NS');
// countries['AUS-ACT'] = getState('AUS', 'AU.AC');
countries['AUS-NSW'] = getStates('AUS', ['AU.NS', 'AU.AC']);
countries['AUS-NT'] = getState('AUS', 'AU.NT');
countries['AUS-QLD'] = getState('AUS', 'AU.QL');
countries['AUS-SA'] = getState('AUS', 'AU.SA');
Expand Down Expand Up @@ -136,7 +136,7 @@ exports.addCountryTopos = function(countries) {
countries['CF'] = getCountry('CAF')
countries['TD'] = getCountry('TCD')
//countries['CL'] = getCountry('CHL')
countries['CL-SING'] = getStates('CHL', ['CL.', 'CL.TA', 'CL.AN'])
countries['CL-SING'] = getStates('CHL', ['CL.AP', 'CL.TA', 'CL.AN'])
countries['CL-SIC'] = getStatesByAdm1(['CHL-2696', 'CHL-2697', 'CHL-2699', 'CHL-2698', 'CHL-2703', 'CHL-2705', 'CHL-2702', 'CHL-2700', 'CHL-2701', 'CHL-2704'])
countries['CL-SEM'] = getState('CHL', 'CL.MA')
countries['CL-SEA'] = getState('CHL', 'CL.AI')
Expand Down

0 comments on commit 9230b9b

Please sign in to comment.