Croatia/Import administrative borders

From OpenStreetMap Wiki
Jump to navigation Jump to search

Importing administrative borders is an import of Državna geodetska uprava[1] administrative border dataset. The import is currently at the planning stage.

Goals

Import administrative borders of Croatia to OSM.

Schedule

The import should go through in January 2024.

Import Data

Background

Link to license: Data is published under an Open license which was approved by the LWG, and the text is here https://web.archive.org/web/20241128203859/https://prod-data.gov.hr/en/open-license
OSM attribution (if required): https://www.openstreetmap.org/copyright
ODbL Compliance verified: yes

Import Steps

Normalize current data

There are a lot of boundaries already mapped, but there are no id's. First step is to agree on a new tag for admin boundaries id's. On our last import, Croatia/Import_DGU_borders we decided on the tag ref:hr:maticni_broj=*. But in discussion, we decided to change that[1]. So the first step is to take all current admin borders with that tag, and change it into a new one. Also, take all the admin borders without id, and add one based on the name.

This is a semi-automated import that uses Ogr2osm and a script that converts polygons to relations, and adds tags [2] made by User:Stalker. That is a modified script from michigantownships twptranslation.py [3]. The whole command is: python3 ../ogr2osm/ogr2osm.py -t smz-translation.py -f --split-ways=1 -o smz.osm naselja.geojson

Data Preparation

Tagging Plans

Tags that will be put on boundary relations:

name=* < text from the DGU geojson

ref:HR:maticni_broj=* < nationalCode from the DGU geojson

boundary=administrative

admin_level=8

type=boundary

source=DGU

source:date=* < beginLifespanVersion

Tags that will be put on boundary ways:

boundary=administrative

admin_level=8

Changeset Tags

comment=Import DGU borders

source=Državna geodetska uprava Republike Hrvatske

Data Merge Workflow

Team Approach

The data is pretty straightforward, so Janko Mihelić will do the manual part of the import.

Dedicated user account

The user under which the import will be done is called Import DGU borders.

Workflow

The fore mentioned tools will make the .osm file to be imported. Importing will be done manually, way by way. During this, history of old borders will be preserved by copying them to some of the smaller borders.


See also