Import/Catalogue/Provincia di Biella/Roads

From OpenStreetMap Wiki
Jump to: navigation, search

About

This page talks about importing road data provided by the Province of Biella (Italy).

Please refer to master page for details.

Import Data

Background

Roads in most of the towns in the Province of Biella are already mapped quite well. Anyway there are some towns that are poorly mapped, especially in the mountain, such as Mezzana Mortigliengo.

Using Cygnus it is possible to conflate source data with OSM road data quite easily: http://www.openstreetmap.org/user/mvexel/diary/36746

Legal

Please refer to master page for details.

Import Type

Please refer to master page for details.

Data Preparation

Tagging Plans

The data is presented as a shapefile.

The shapefile is shipped inside the zip file named "3016623Stradario.zip" available at: http://cartografia.provincia.biella.it/on-line/Home/Repertorio/Consultazione/AT7Mobilitaetrasporti.html

This shapefile is periodically updated. This workflow has been validated with the version released on 23/01/2017 (stradario23012017.shp).

The keys and the corresponding values are described in this document provided by the Province of Biella.

The shapefile will be converted to OSM XML using ogr2osm. The projection must be specified as “EPSG:32632 (WGS 84 / UTM zone 32N)”.

Please refer to the osg2osm translation file for further info about tagging.

Dedicated upload account

Please refer to master page for details.

Changeset Tags

Changeset will be tagged with:

  • source=Province of Biella Open Data
  • source:license=CC-BY
  • type=import
  • url=https://wiki.openstreetmap.org/wiki/Import/Catalogue/Provincia_di_Biella

Data Transformation

ogr2osm will be used to convert the shapefile to OSM XML format using the above tagging plan.

ogr2osm translation file can be found at https://github.com/musuruan/osm_imports/blob/master/prov_bi/stradario.py

Data Transformation Results

OSM XML file: https://www.dropbox.com/s/zbkbfqbgusozyqz/stradario23012017.osm?dl=0

Data Merge Workflow

See #Workflow.

Team Approach

Please refer to master page for details.

Workflow

Step by step instructions:

  1. Run ogr2osm to export the data in OSM XML: ogr2osm.py --add-timestamp --add-version --positive-id -e 32632 -t stradario.py -f stradario23012017.shp
  2. Run osmfilter to extract data for a specific town: osmfilter stradario23012017.osm --keep="is_in=NOME_COMUNE" -o=stradario23012017-NOME_COMUNE.osm. NB: each space character within a value must be preceded by a backslash.
  3. Run osmconvert to convert the data to pbf (NB: the extension MUST be .osm.pbf): osmconvert stradario23012017-NOME_COMUNE.osm --out-pbf > stradario23012017-NOME_COMUNE.osm.pbf
  4. Upload NOME_COMUNE.osm.pbf to http://cygnus.improve-osm.org/
  5. Download the conflated OSM file
  6. Open the conflated OSM file in JOSM
  7. Remove the is_in tags
  8. Download OSM data for the same area in the same layer
  9. Use JOSM Validator to fix minor issues
  10. Remove the telenav:graph-enhancer tags
  11. Upload the changeset in OSM

The changeset will be small enough to be uploaded at once.

In case of import problem the changeset will be reverted using the JOSM Reverter Plugin

Conflation

See #Workflow.

QA

Josm validator should catch most issues prior to uploading the data.

Missing road names will be added after importing address data.