compare-geojson
Version:
Compare a features new and old versions in GeoJSON
229 lines (227 loc) • 5.68 kB
JSON
{
"compareFunction": "disputed-border-deleted",
"fixtures": [
{
"description": "Checks for deleted disputed borders",
"newVersion": null ,
"oldVersion": {
"type": "Feature",
"id": "way!304171558!6",
"properties": {
"admin_level": "2",
"alt_name": "中印边界;中国声称",
"boundary": "disputed",
"disputed": "yes",
"name": "中印边界(中国声称)",
"name:en": "border China-India(claimed by China)",
"osm:type": "way",
"osm:id": 304171558,
"osm:version": 6,
"osm:changeset": 41673567,
"osm:timestamp": 1472077205000,
"osm:uid": 145231,
"osm:user": "woodpeck_repair"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
94.2574707,
27.5583821
],
[
94.27757,
27.579277
],
[
94.2873,
27.582914
],
[
94.324471,
27.583974
],
[
94.349036,
27.577299
],
[
94.365918,
27.578273
],
[
94.385555,
27.583375
],
[
94.399051,
27.587914
],
[
94.419814,
27.584078
],
[
94.438511,
27.583483
],
[
94.444715,
27.583929
],
[
94.469167,
27.598139
],
[
94.478206,
27.600756
],
[
94.508855,
27.59334
],
[
94.525692,
27.594648
],
[
94.550227,
27.607598
],
[
94.658236,
27.649334
],
[
94.696861,
27.671339
],
[
94.725793,
27.683978
],
[
94.780256,
27.698869
],
[
94.794733,
27.707692
],
[
94.834535,
27.727454
],
[
94.871418,
27.737174
],
[
94.894567,
27.745824
],
[
94.935352,
27.778638
],
[
94.950111,
27.791233
],
[
94.987054,
27.810362
],
[
95.011463,
27.825894
],
[
95.063122,
27.838532
],
[
95.098988,
27.855072
],
[
95.173689,
27.89036
],
[
95.184809,
27.89319
],
[
95.273817,
27.9284
],
[
95.292487,
27.946214
],
[
95.307703,
27.966993
],
[
95.315191,
27.984649
],
[
95.325292,
28.007903
],
[
95.332656,
28.020293
],
[
95.353443,
28.038189
],
[
95.371726,
28.107599
],
[
95.383526,
28.125512
],
[
95.397717,
28.141584
],
[
95.434677,
28.159359
],
[
95.497503,
28.173695
],
[
95.541742,
28.18543
],
[
95.592021,
28.207892
],
[
95.657801,
28.242287
],
[
95.676151,
28.25316
]
]
}
},
"expectedResult": {
"result:disputed_border_deleted":true }
}
]
}