Extracts most recent quarterly population numbers from SSB and updates OSM file.
python population2osm.py
(no parameter)
-
This program will:
- Load the most recent quarterly population numbers from SSB.
- Load the country, county and munucipality relations for Norway from OSM.
- Update the population and population:date tags of the relations.
- Produce a Update_population.osm file ready for upload to OSM through JOSM.
-
There are two country relations in OSM for Norway. This program is updating the full country relation for the Kingdom of Norway, including Svalbard (not the other Norway mainland relation).
-
SSB also updates the quarterly population numbers between quarters. The program may be run at any time to pick up any such corrections.
-
The following predefined SSB queries are used:
- Full country: Population change. Whole country, latest quarter
- Counties: Population changes. Counties, latest quarter
- Municipalities: Population changes. Municipalities, latest quarter
-
As Svalbard residents are included in the Norway mainland population numbers, the population of Svalbard will not be updated by this program. There is a separate SSB reporting for Svalbard, which could be updated manually.
-
Population data from SSB is licensed under the NLOD 2.0 license. OpenStreetMap has obtained permission to use all NLOD data from SSB.
Extracts population numbers for urban settlements ("tettsteder") from SSB and updates OSM file.
python urban_population2osm.py [year] [CSV filename]
-
This program will:
- Load population numbers for urban settlements from downloaded SSB web table file.
- Load urban settlements (place objects) with the ref:ssb_tettsted tag for Norway from OSM.
- Update the population and population:date tags of the settlements.
- Produce a tettsted.osm file ready for further editing and uploading to OSM through JOSM.
-
The urban settlement population numbers are used for the place=city/town/village etc nodes. This has the implication that the population numbers for place=city/town will be different from the corresponding municipality relations (could be either smaller or bigger). For example the population of the Arendal place=town node will be different from the Arendal municipality relation.
-
The program accepts the SSB municipality table on this web page in CSV format (download link for table 1, at the time of writing). The table is updated by SSB once a year, usually in October.