-
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.
jsontogeojson: Add meta output, with output field coverage
Helpful for Open-Telecoms-Data/cove-ofds#6
- Loading branch information
Showing
9 changed files
with
639 additions
and
4 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
120 changes: 120 additions & 0 deletions
120
tests/fixtures/json_to_geojson/basic_1.expected.meta.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,120 @@ | ||
{ | ||
"nodes_output_field_coverage": { | ||
"/type": { | ||
"count": 1 | ||
}, | ||
"/features": { | ||
"count": 1 | ||
}, | ||
"/features/type": { | ||
"count": 2 | ||
}, | ||
"/features/geometry": { | ||
"count": 2 | ||
}, | ||
"/features/geometry/type": { | ||
"count": 2 | ||
}, | ||
"/features/geometry/coordinates": { | ||
"count": 2 | ||
}, | ||
"/features/properties": { | ||
"count": 2 | ||
}, | ||
"/features/properties/id": { | ||
"count": 2 | ||
}, | ||
"/features/properties/name": { | ||
"count": 2 | ||
}, | ||
"/features/properties/network": { | ||
"count": 2 | ||
}, | ||
"/features/properties/network/id": { | ||
"count": 2 | ||
}, | ||
"/features/properties/network/name": { | ||
"count": 2 | ||
}, | ||
"/features/properties/status": { | ||
"count": 1 | ||
} | ||
}, | ||
"spans_output_field_coverage": { | ||
"/type": { | ||
"count": 1 | ||
}, | ||
"/features": { | ||
"count": 1 | ||
}, | ||
"/features/type": { | ||
"count": 1 | ||
}, | ||
"/features/geometry": { | ||
"count": 1 | ||
}, | ||
"/features/geometry/type": { | ||
"count": 1 | ||
}, | ||
"/features/geometry/coordinates": { | ||
"count": 1 | ||
}, | ||
"/features/properties": { | ||
"count": 1 | ||
}, | ||
"/features/properties/id": { | ||
"count": 1 | ||
}, | ||
"/features/properties/name": { | ||
"count": 1 | ||
}, | ||
"/features/properties/start": { | ||
"count": 1 | ||
}, | ||
"/features/properties/start/id": { | ||
"count": 1 | ||
}, | ||
"/features/properties/start/name": { | ||
"count": 1 | ||
}, | ||
"/features/properties/start/location": { | ||
"count": 1 | ||
}, | ||
"/features/properties/start/location/type": { | ||
"count": 1 | ||
}, | ||
"/features/properties/start/location/coordinates": { | ||
"count": 1 | ||
}, | ||
"/features/properties/end": { | ||
"count": 1 | ||
}, | ||
"/features/properties/end/id": { | ||
"count": 1 | ||
}, | ||
"/features/properties/end/name": { | ||
"count": 1 | ||
}, | ||
"/features/properties/end/status": { | ||
"count": 1 | ||
}, | ||
"/features/properties/end/location": { | ||
"count": 1 | ||
}, | ||
"/features/properties/end/location/type": { | ||
"count": 1 | ||
}, | ||
"/features/properties/end/location/coordinates": { | ||
"count": 1 | ||
}, | ||
"/features/properties/network": { | ||
"count": 1 | ||
}, | ||
"/features/properties/network/id": { | ||
"count": 1 | ||
}, | ||
"/features/properties/network/name": { | ||
"count": 1 | ||
} | ||
} | ||
} |
90 changes: 90 additions & 0 deletions
90
tests/fixtures/json_to_geojson/no_geometry_1.expected.meta.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,90 @@ | ||
{ | ||
"nodes_output_field_coverage": { | ||
"/type": { | ||
"count": 1 | ||
}, | ||
"/features": { | ||
"count": 1 | ||
}, | ||
"/features/type": { | ||
"count": 2 | ||
}, | ||
"/features/geometry": { | ||
"count": 2 | ||
}, | ||
"/features/properties": { | ||
"count": 2 | ||
}, | ||
"/features/properties/id": { | ||
"count": 2 | ||
}, | ||
"/features/properties/name": { | ||
"count": 2 | ||
}, | ||
"/features/properties/network": { | ||
"count": 2 | ||
}, | ||
"/features/properties/network/id": { | ||
"count": 2 | ||
}, | ||
"/features/properties/network/name": { | ||
"count": 2 | ||
}, | ||
"/features/properties/status": { | ||
"count": 1 | ||
} | ||
}, | ||
"spans_output_field_coverage": { | ||
"/type": { | ||
"count": 1 | ||
}, | ||
"/features": { | ||
"count": 1 | ||
}, | ||
"/features/type": { | ||
"count": 1 | ||
}, | ||
"/features/geometry": { | ||
"count": 1 | ||
}, | ||
"/features/properties": { | ||
"count": 1 | ||
}, | ||
"/features/properties/id": { | ||
"count": 1 | ||
}, | ||
"/features/properties/name": { | ||
"count": 1 | ||
}, | ||
"/features/properties/start": { | ||
"count": 1 | ||
}, | ||
"/features/properties/start/id": { | ||
"count": 1 | ||
}, | ||
"/features/properties/start/name": { | ||
"count": 1 | ||
}, | ||
"/features/properties/end": { | ||
"count": 1 | ||
}, | ||
"/features/properties/end/id": { | ||
"count": 1 | ||
}, | ||
"/features/properties/end/name": { | ||
"count": 1 | ||
}, | ||
"/features/properties/end/status": { | ||
"count": 1 | ||
}, | ||
"/features/properties/network": { | ||
"count": 1 | ||
}, | ||
"/features/properties/network/id": { | ||
"count": 1 | ||
}, | ||
"/features/properties/network/name": { | ||
"count": 1 | ||
} | ||
} | ||
} |
Oops, something went wrong.