1. Load and transform TietoaKuntajaosta_2017_4500k.zip from kartat.kapsi.fi wget "http://kartat.kapsi.fi/files/kuntajako/kuntajako_4500k/etrs89/shp/TietoaKuntajaosta_2017_4500k.zip" unzip TietoaKuntajaosta_2017_4500k.zip ogr2ogr -f GeoJSON -t_srs crs:84 SuomenKuntajako_2017_4500k.geo.json SuomenKuntajako_2017_4500k.shp 2. Transform and enhance GeoJSON Added "maakunta" information from Wikipedia // Kunta -> Maakunta const mapping = _.reduce($('.wikitable.sortable.jquery-tablesorter tbody tr').toArray(), (acc, el) => { acc[$(el).find('td:eq(2)').text()] = $(el).find('td:eq(5)').text(); return acc; }, {}); // Update orginal GeoJSON _.forEach(geoJson.features, f => { const name = f.properties.NAMEFIN; const parent = mapping[name]; if (!parent) { throw `No parent found for ${name}`; } f.properties = { name, parent }; }); geoJson.features = _.sortBy(geoJson.features, f => f.properties.name);