Go to file
2022-09-01 11:52:22 -07:00
data ready to import Initial commit 2022-09-01 11:52:22 -07:00
original data Initial commit 2022-09-01 11:52:22 -07:00
processed data Initial commit 2022-09-01 11:52:22 -07:00
qgis-functions.py Initial commit 2022-09-01 11:52:22 -07:00
README.md Initial commit 2022-09-01 11:52:22 -07:00

  • Open the original data in QGIS
  • Format OSM fields with QGIS functions to have proper capitalization and full spellings without extraneous whitespace, based on original fields
    • You can use the Attribute Table's Field Calculator for this; you can copy-paste the qgis-functions.py file into the Function Editor and then use the Expression tab to create new, formatted virtual fields. Don't worry if the field name limit is too short, it can be fixed in JOSM.
  • For addresses:
    • addr:housenumber
    • addr:street expanding N MAIN ST to North Main Street
    • addr:city
    • addr:postcode
  • For roads:
    • name (with nice casing and spelling like North Main Street not N MAIN ST)
    • surface=asphalt
    • maxspeed=10 mph
  • Export to Geojson or Shapefile
  • Open in JSOM
  • Select and remove all relations from the geojson/shapefile layer: the data often has one relation per road and this is improper for OSM import.
  • Highlight a small region to work on: one neighborhood or smaller. For this import, we are assuming that only newly-constructed small residential areas will be imported, not main roads or commercial areas or areas with significant existing map data.
  • Select all ways for roads, or all nodes for addresses. Make sure you aren't about to mass-edit the nodes of a road: deselect the nodes if this happens.
  • Ensure the tags are correct and good. (QGIS has a character limit and sometimes doesn't like colons.)
  • Add tags like highway=residential, surface=asphalt, etc, as needed.
  • Remove any spurious tags that may have been brought over in the import (if it's not in the OSM Wiki, we don't want it.)
  • For roads, highlight multiple street segments which have the same name and press C to combine them: the county data has one way per road segment and that's excessive for OSM.
  • Download the area you're working on from OSM, into a new Data Layer.
  • Highlight all features to be imported at this time and press ctrl-shift-M to merge into the OSM data layer
  • Check the edges of the imported areas to ensure new roads are merged with any preexisting roads
  • Check the import area to ensure no incorrect overlaps
  • Use the JOSM validator to ensure no errors in imported data
  • Click upload
    • Make sure there are no erroneous Relations or other unwanted objects about to be uploaded.
    • Use a descriptive changeset message like "Roads/Addresses in The Villages #villagesimport"
    • Set the Source to be "Sumter County GIS"
  • Review imported data in Achavi or Osmcha to ensure it looks proper