Skip to content

Fixing broken multipolygons #222

@Andygol

Description

@Andygol

OSM data consists of objects of different types. One of these types are multipolygons. (See more details http://wiki.openstreetmap.org/wiki/Relation:multipolygon)

Sometimes the data contains errors. It may be improperly placed tags and sometimes errors in the topology of the objects. They all lead to incorrect representation of features details for the data consumer or to a lack of objects on the map.

̛

Objects formed using Multipolygons can be easily damaged by users during editing. As a result of the Data Team research a large number of such objects was found. See link

To help debug broken multipolygons, we have a map tool that can be used to check if its one of the bad ones and the location of the issues: http://osmlab.github.io/fixing-polygons-in-osm/map/

Goal: to fix corrupted multipolygons

Estimated features to fix: 2917

Estimated time to fix: To be calculated

Sources: Spreadsheet, Bing, experiences, local knowledge, http://osmlab.github.io/fixing-polygons-in-osm/map/

To work with Multipolygons best to use JOSM with plugins:

Setup

  • Add Layers in JOSM:

    • OSMInspector Areas WMS (Enter URL > GET Layers > Select Geofabrik Tools > Image format: png) - http://tools.geofabrik.de/osmi/view/areas/wxs?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
    • mapbox-streets - tms[99]:https://api.mapbox.com/v4/mapbox.streets/{zoom}/{x}/{y}.png?access_token=pk.eyJ1IjoicHJhdGlreWFkYXYiLCJhIjoiMTA2YWUxNjRkNmFmZGQ4YzAxZWFiNDk0NDM1YjE1YjAifQ.4P6N5dNmA_WQXd3BsJvu5w


    * Adding WMS Layer

  • Install plugins

Instruction

  1. Choose broken multipolygon from the spreadsheet
  2. Download it into JOSM. For manual downloading use menu File->Download Object… Ctrl+Shift+O (++O)

  1. Find a place with a problem
    ring not closed
  2. Download the data around it to avoid possible damage of data during the repair process Ctrl+Shift+ (++)
  3. Open relation in the Relation editor. Find the gaps and missing roles
  4. Fix the multipolygon, adding the missing segments or removing unnecessary ones
  5. As a result, you'll have closed inner and outer loops of the multipolygon
  6. Run Validation to check your edits Shift+V (+V)
  7. If needed repeat steps 5 - 8

What to fix

  • touching rings
  • selfintersections
  • unclosed ways

In case of old style tagging - put tags on the multipolygon instead it members

Changeset comment and source:

  • Comment ---> Fixed broken multipolygon #https://github.com/mapbox/mapping/issues/222
  • Source ---> Bing; OSMInspector

@mapbox/team-data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions