-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
geojsontojson: Report on inconsistent networks
#26 tests/fixtures/geojson_to_json/phases_inconsistent*: Added new inconsistent phrase in contract in network Make sure the phase_id is reported in meta output
- Loading branch information
Showing
17 changed files
with
427 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 98 additions & 0 deletions
98
tests/fixtures/geojson_to_json/network_inconsistent_1.expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"networks": [ | ||
{ | ||
"id": "a096d627-72e1-4f9b-b129-951b1737bff4", | ||
"name": "Ghana Fibre Network", | ||
"nodes": [ | ||
{ | ||
"id": "1", | ||
"name": "Accra", | ||
"location": { | ||
"type": "Point", | ||
"coordinates": [ | ||
-0.174, | ||
5.625 | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "2", | ||
"name": "Kumasi", | ||
"status": "operational", | ||
"location": { | ||
"type": "Point", | ||
"coordinates": [ | ||
-1.628, | ||
6.711 | ||
] | ||
} | ||
} | ||
], | ||
"spans": [ | ||
{ | ||
"id": "1", | ||
"name": "Accra to Kumasi", | ||
"start": "1", | ||
"end": "2", | ||
"route": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ | ||
-0.173, | ||
5.626 | ||
], | ||
[ | ||
-0.178, | ||
5.807 | ||
], | ||
[ | ||
-0.112, | ||
5.971 | ||
], | ||
[ | ||
-0.211, | ||
5.963 | ||
], | ||
[ | ||
-0.321, | ||
6.17 | ||
], | ||
[ | ||
-0.488, | ||
6.29 | ||
], | ||
[ | ||
-0.56, | ||
6.421 | ||
], | ||
[ | ||
-0.752, | ||
6.533 | ||
], | ||
[ | ||
-0.867, | ||
6.607 | ||
], | ||
[ | ||
-1.101, | ||
6.585 | ||
], | ||
[ | ||
-1.304, | ||
6.623 | ||
], | ||
[ | ||
-1.461, | ||
6.727 | ||
], | ||
[ | ||
-1.628, | ||
6.713 | ||
] | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
63 changes: 63 additions & 0 deletions
63
tests/fixtures/geojson_to_json/network_inconsistent_1.meta.expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"output_field_coverage": { | ||
"/networks": { | ||
"count": 1 | ||
}, | ||
"/networks/id": { | ||
"count": 1 | ||
}, | ||
"/networks/name": { | ||
"count": 1 | ||
}, | ||
"/networks/nodes": { | ||
"count": 1 | ||
}, | ||
"/networks/nodes/id": { | ||
"count": 2 | ||
}, | ||
"/networks/nodes/name": { | ||
"count": 2 | ||
}, | ||
"/networks/nodes/location": { | ||
"count": 2 | ||
}, | ||
"/networks/nodes/location/type": { | ||
"count": 2 | ||
}, | ||
"/networks/nodes/location/coordinates": { | ||
"count": 2 | ||
}, | ||
"/networks/nodes/status": { | ||
"count": 1 | ||
}, | ||
"/networks/spans": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/id": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/name": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/start": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/end": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/route": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/route/type": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/route/coordinates": { | ||
"count": 1 | ||
} | ||
}, | ||
"inconsistent_phases_by_network_id": {}, | ||
"inconsistent_organisations_by_network_id": {}, | ||
"inconsistent_network_ids": [ | ||
"a096d627-72e1-4f9b-b129-951b1737bff4" | ||
] | ||
} |
42 changes: 42 additions & 0 deletions
42
tests/fixtures/geojson_to_json/network_inconsistent_1.nodes.geo.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
-0.174, | ||
5.625 | ||
] | ||
}, | ||
"properties": { | ||
"id": "1", | ||
"name": "Accra", | ||
"network": { | ||
"id": "a096d627-72e1-4f9b-b129-951b1737bff4", | ||
"name": "Ghana Fibre Network" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
-1.628, | ||
6.711 | ||
] | ||
}, | ||
"properties": { | ||
"id": "2", | ||
"name": "Kumasi", | ||
"status": "operational", | ||
"network": { | ||
"id": "a096d627-72e1-4f9b-b129-951b1737bff4", | ||
"name": "Ghana Fibre Network" | ||
} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.