Montréal/Imports/MTLWiFi

From OpenStreetMap Wiki
Jump to navigation Jump to search

MTLWiFi import is an import of the City of Montreal's Bornes du réseau sans fil MTLWiFi dataset.

Goals

The goal is to import nodes or add/modify ways so as to include the above feature in cases where it is missing in the existing OSM data for the territory of the City of Montreal. This amounts to 577 additions or modifications.

Import Data

Background

Data source sites: Bornes du réseau sans fil MTLWiFi
Data license: Licence d’utilisation des données ouvertes de la Ville de Montréal (note the section "Utilisation des données par OpenStreetMap").
Type of license: CC-BY-4.0.
Link to permission: Montréal/Imports/Ville de Montréal.
OSM attribution: Contributors (see "Montréal").
ODbL Compliance verified: yes.

Import Type

This is a one-time import that will be added to the OSM database via JOSM.

Data Preparation

Tagging Plans

The features linked to the Wi-Fi networks (either parks, buildings or nodes) will have the following tags:

Changeset Tags

Key Value
comment Import of the City of Montreal's free public Wi-Fi, with additional transformations.
import yes
source Ville de Montréal;Bing
source:url https://donnees.montreal.ca/dataset/couverture-du-reseau-wifi-mtlwifi
source:date 2023
import:page https://wiki.openstreetmap.org/wiki/Montréal/Imports/MTLWiFi
source:license CC-BY-4.0

Data Transformation

Step by step instructions

  1. Open this geojson file in QGIS.
  2. Select entries from the file whose “Zone active” field contains an “X” (to avoid importing Wi-Fi networks that are no longer active). Export the selection as a geopackage in MTM 8.
  3. Select entries whose “Type” field value is “Intersection.” Export selection as “Import part 1 - intersections” as a geojson in WGS 84.
  4. Invert selection and export as geopackage in MTM 8. Add this to the project.
  5. Using QuickOSM, download building=* for the relevant extent.
  6. From the layer created in step 4, select those whose “Type” field is equal to "Parc" (note: one is "PArc (sic)"). Export this selection, named “Import part 2 - parks,” as a geojson in WGS 84.
  7. Invert selection and export as geopackage in MTM 8. Add this to the project.
  8. Select points from the layer created in step 7 which intersect with buildings. Export the selection, “Import part 3 - buildings,” as a geojson in WGS 84.
  9. Invert selection and export as geopackage in MTM 8. Add this to the project.
  10. From here, there are 93 remaining points which must be moved to their respective buildings. This can be done with the help of OSM carto, Bing and, in cases where it’s more difficult, using the Adresse ponctuelle dataset. In certain cases, it was necessary to move the points to where a building will eventually be drawn later in the import.
  11. Export the layer modified in step 10 as a geojson in WGS 84. File name: "Import part 4 - no intersection building or park edited."

Data Merge Workflow

Workflow

Step by step instructions

Part 1: intersections
  1. Import all 3 sign layers:
  2. Merge as one layer.
  3. Delete all tags.
  4. Open “Import part 1 - intersections.”
  5. Add the correct tags (see above).
  6. Conflate using these settings: standard, 25 m, disambiguation.
  7. Remove all nodes that do not have the above tags and save as an osm xml.

Note: this step is necessary as the location of the MTLWiFi nodes is approximate to a few meters; they sometimes fall in the middle of intersections or in other nonsensical places. To move them to more reasonable locations, and in most cases where they are located exactly, they were conflated to the nearest pole.

Part 2: parks
  1. Open “Import part 2 - parks.”
  2. Apply the correct tags (see above).
  3. Query overpass for leisure=park for the relevant extent and add as a new layer.
  4. Select all parks: "leisure"="park" AND type:way
  5. Conflate Import part 2 - parks (as the reference) with the selection from step 3. Settings: standard, 25 m, disambiguation.
  6. Match the remaining points close to relations manually.
  7. Save resulting layer as an osm xml.
Part 3: buildings (intersects)
  1. Open “Import part 3 - buildings.’
  2. Apply the correct tags (see above) and add as reference for conflation.
  3. Query overpass for building=* for the relevant extent and add as a new layer.
  4. Select all buildings: building=* AND type:way. Add as subject for conflation.
  5. Conflate using the following settings: disambiguation, standard and 1 m.
  6. Match remaining points close to relations manually.
  7. Save resulting layer as an osm xml.
Part 4: buildings (manual edits)
  1. Open “Import part 4 - no intersection building or park edited”
  2. Apply the correct tags (see above) and add as reference for conflation.
  3. Open the final result from part 3 and add building=* AND type:way as subject for conflation.
  4. Conflate using the following settings: disambiguation, standard and 0.1 m.
  5. Add missing buildings, based on Bing imagery and where MTLWiFi points are.
Part 5: final import
  1. Open the 3 files created in preceding 4 parts (the latter two are already merged).
  2. Create a new layer.
  3. Merge the modified elements from the other 3 layers into the newly-created layer.
  4. Save the resulting file as an osm xml.
  5. Upload.

Changeset size policy

In JOSM, upload objects in chunks of size: 9000.

Revert plans

If ever something goes wrong, the JOSM/Plugins/Reverter plugin will be used.

Conflation

Please see the step by step instructions above.

See also

A related post, about a more complex import from the same source, was sent to the community forum on 2024-01-29 and can be found here.