-
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: Add meta output, with output field coverage
Will be adding more to meta later, like errors on conversion. Added field coverage because thought would be helpful for Open-Telecoms-Data/cove-ofds#6 but actually I added to wrong conversion! Leaving as may be useful and that is simpler than removing. Also fix: bug in get_json() that meant it could not be called twice
- Loading branch information
Showing
8 changed files
with
307 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"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 | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
tests/fixtures/geojson_to_json/no_geometry_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,40 @@ | ||
{ | ||
"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/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 | ||
} | ||
} | ||
} |
91 changes: 91 additions & 0 deletions
91
tests/fixtures/geojson_to_json/organisations_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,91 @@ | ||
{ | ||
"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/physicalInfrastructureProvider": { | ||
"count": 2 | ||
}, | ||
"/networks/nodes/physicalInfrastructureProvider/id": { | ||
"count": 2 | ||
}, | ||
"/networks/nodes/networkProvider": { | ||
"count": 2 | ||
}, | ||
"/networks/nodes/networkProvider/id": { | ||
"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/physicalInfrastructureProvider": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/physicalInfrastructureProvider/id": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/networkProvider": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/networkProvider/id": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/route": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/route/type": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/route/coordinates": { | ||
"count": 1 | ||
}, | ||
"/networks/organisations": { | ||
"count": 1 | ||
}, | ||
"/networks/organisations/id": { | ||
"count": 2 | ||
}, | ||
"/networks/organisations/name": { | ||
"count": 2 | ||
} | ||
} | ||
} |
82 changes: 82 additions & 0 deletions
82
tests/fixtures/geojson_to_json/phases_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,82 @@ | ||
{ | ||
"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/phase": { | ||
"count": 2 | ||
}, | ||
"/networks/nodes/phase/id": { | ||
"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/phase": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/phase/id": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/route": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/route/type": { | ||
"count": 1 | ||
}, | ||
"/networks/spans/route/coordinates": { | ||
"count": 1 | ||
}, | ||
"/networks/phases": { | ||
"count": 1 | ||
}, | ||
"/networks/phases/id": { | ||
"count": 1 | ||
}, | ||
"/networks/phases/name": { | ||
"count": 1 | ||
}, | ||
"/networks/phases/description": { | ||
"count": 1 | ||
} | ||
} | ||
} |
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