mirror of
https://github.com/ivuorinen/finland-location-resources.git
synced 2026-01-26 03:04:09 +00:00
a952094abe225a6ec78f78d3479d39216f711b2f
Finnish Municipalities and Provinces
This small repository was created because I couldn't find any place where one could get the up to date listing of municipalities and/or provinces of Finland. This repository should provide information where to find all the data online, and provide help how to use it.
Up to date Municipalities and Provinces listing (kunta_mk_teksti)
This script takes the listing from Statistics Finland and cleans it up for you.
- Browse to https://www.stat.fi/meta/luokitukset/kunta/001-2017/luokitusavaimet.html
- Search for
Kunnat 2017 / Maakunta 2017or similar and download thetekstitiedosto (txt)- See Terms of use
- Protip: Changing the url part
001-2017to001-2016shows the previous year, if you need that for some reason.
- Place the text file next to
kunta_mk_teksti.php - Browse to/Run
kunta_mk_teksti.phpand get the list in easy to read, alphabetical format
Up to date Municipalities in GeoJSON
This one requires a bit of fiddling and conversion. From GML to GeoJSON to be exact.
- Getting the data
- Open National Land Survey of Finland's File service of open data (see Terms of service)
- Select one of "Municipal Division" from left sidebar (you probably need to scroll the listing) by clicking the green plus-symbol
- Select
GMLas file format (etrs-tm35finis as of writing the only coordinate system they provide, read more here) - Click the center container to apply the selected layer
- Click "Place your order" on the right hand side panel and follow directions to get the material
- Converting the data to GeoJSON
- GeoConverter (web, tos)
- MyGeodata Converter (web, paid plans, tos)
- OpenGeoTools (web, tos)
- Ogre (web, open source) "ogr2ogr geojson-focused web client"
- ogr2ogr seems to be the cli tool everything else is based on. Part of GDAL project.
The hopefully helpful tips and guides are released under CC-BY-SA-4.0, scripts and other code are released under GPL-3.0. This repository has no affiliation with any of the mentioned instances, services or linked tools.
All contributions are welcome!
Description
Languages
PHP
100%