harmful-osm-edits
v0.3.1
Published
Repository of problematic feature edits on OpenStreetMap
Downloads
6
Readme
Problematic feature and changeset edits on OpenStreetMap
Setup
# Clone repository and install required packages
git clone [email protected]:mapbox/harmful-osm-edits.git
cd harmful-osm-edits
npm install
# Generate an example fixture for Mapbox, Bangalore (feature)
./generate-feature-fixture.js --type node --id 3352016856 --version 21
# Generate a new fixture for a feature passing required arguments
./generate-feature-fixture.js --type featureType --id featureId --version featureVersion
# Generate a new fixture for a changeset passing the required arguments
./generate-changeset-fixture.js --changeset changesetId
# Generate fixtures for multiple changeset ids
./generate-changeset-fixture.js --input sampleInput/generate-changeset-fixture-input.txt
Format
Feature
{
"description": "Description of what makes this feature edit problematic",
"newVersion": "Feature that was problematic",
"oldVersion": "Version of feature before the problematic change"
}
Changeset
[
{
"oldVersion": "old Version for feature 1 of the changeset",
"newVersion: "new Version for feature 1 of the changeset"
},
{
"oldVersion": "old Version for feature 2 of the changeset",
"newVersion: "new Version for feature 2 of the changeset"
}
.
.
.
]
Example
An ideal feature fixture with a great description
, newVersion
and oldVersion
: node-3352016856-21.json
Example fixture for changeset : 46645754.json