-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Copying an issue from archived repo - covjson/specification#92
Hi,
I'm exploring the feasibility of using CoverageJSON to share geotechnical borehole data, specifically AGS data - https://www.ags.org.uk/data-format/
This is a text file with a collection of groups of data, for 1 to n boreholes - see https://github.com/BritishGeologicalSurvey/pyagsapi/blob/main/test/files/example_ags.ags at it's most basic. They's a group for the project, group for location data (there's often more than 1 borehole on a project), group for sampling/geotchnical test data, group for geology etc.
The geology data might have values lie a lithology code & a description:
0 m = SOIL, Grass over top brown slightly gravelly sandy clay. Sand is fine to medium, gravel is subrounded to rounded and fine to medium
0.3 m = MUD, Greyish brown slightly gravelly slightly sandy silty clay with medium cobble content. Gravel is sub-angular to sub-rounded fine to coarse
1.0 m = CLAY, Black gravelly sandy clay
5 m = SAND, Reddish brown fine to coarse sand
A geotechnical test/sample might be like the below with multiple attributes:
0.5 m = 25, ES
0.8 m = 26, ES
1.11 m = 89, DS
1.26 m = 159, SP
3.45 m = 160, SD
4.87 m = 250, SR
4.90 m = 350, TO
5 m = 500, SO
A real .ags file example with multiple groups - https://github.com/BritishGeologicalSurvey/pyagsapi/blob/main/test/files/real/19684.ags
I need multiple z coordinates / irregular grid for each parameter & understand it's 1 z per domain. So I need to use a coverage collection for 1 borehole, with a coverage for each parameter which has unique z values.
Is there a way or having a collection of collections so 1 json could serve data from multiple boreholes/vertical profiles?
Example code for 1 borehole:
{
"type" : "CoverageCollection",
"domainType" : "VerticalProfile",
"dct:identifier": "20374782",
"dct:hasVersion": "4.0",
"dct:rightsHolder": "MR E. O'BRIEN",
"dct:Location": "GLAN-Y-NANT, LLANIDLOES",
"dct:title": "Mount Severn- Environment Agency",
"ags:contractor:": "W.B. & A.D. MORGAN LTD.",
"ags:engineer": "R.MILLS & J. SCOTT",
"dct:license": "https://creativecommons.org/licenses/by/4.0/",
"parameters" : {
"PTIM": {
"type" : "Parameter",
"description" : {
"en": "Boring/Drilling Progress by Time"
},
"unit" : {
"symbol" : "meters"
},
"observedProperty" : {
"label" : {
"en": "Boring/Drilling Progress by Time"
}
}
},
"GEOL": {
"type" : "Parameter",
"observedProperty" : {
"id": "https://data.bgs.ac.uk/doc/Lexicon.html",
"label" : {
"en": "Lexicon"
},
"categories": [{
"id": "https://data.bgs.ac.uk/id/Lexicon/NamedRockUnit/H4852.html",
"label": {
"en": "1st Terrace Deposits (River Severn)"
}
}, {
"id": "https://data.bgs.ac.uk/id/Lexicon/NamedRockUnit/S945.html",
"label": {
"en": "2nd Terrace Of River Cam"
}
}, {
"id": "https://data.bgs.ac.uk/id/Lexicon/NamedRockUnit/TSYC.html",
"label": {
"en": "36 Yard Coal (West Yorkshire)"
}
}]
},
"categoryEncoding": {
"https://data.bgs.ac.uk/id/Lexicon/NamedRockUnit/H4852.html": 0,
"https://data.bgs.ac.uk/id/Lexicon/NamedRockUnit/S945.html": 1,
"https://data.bgs.ac.uk/id/Lexicon/NamedRockUnit/TSYC.html": 2
}
}
},
"referencing": [{
"coordinates": ["x","y"],
"system": {
"type": "GeographicCRS",
"id": "http://www.opengis.net/def/crs/OGC/1.3/CRS84"
}
}, {
"coordinates": ["z"],
"system": {
"type": "VerticalCRS",
"cs": {
"csAxes": [{
"name": {
"en": "Depth"
},
"direction": "down",
"unit": {
"symbol": "m"
}
}]
}
}
}, {
"coordinates": ["t"],
"system": {
"type": "TemporalRS",
"calendar": "Gregorian"
}
}],
"coverages": [
{
"type" : "Coverage",
"domain" : {
"type": "Domain",
"axes": {
"x": { "values": [-10.1] },
"y": { "values": [-40.2] },
"z": { "values": [ 5, 8, 14 ] },
"t": { "values": ["2013-01-13T11:12:20Z"] }
}
},
"ranges" : {
"PTIM" : {
"type" : "NdArray",
"dataType": "float",
"shape": [3],
"axisNames": ["z"],
"values" : [ 43.7, 43.8, 43.9 ]
}
}
}, {
"type" : "Coverage",
"domain" : {
"type": "Domain",
"axes": {
"x": { "values": [-10.1] },
"y": { "values": [-40.2] },
"z": { "values": [ 4, 7, 9 ] },
"t": { "values": ["2013-01-13T12:12:20Z"] }
}
},
"ranges" : {
"GEOL" : {
"type" : "NdArray",
"dataType": "float",
"shape": [3],
"axisNames": ["z"],
"values" : [ 0, 1, 2 ]
}
}
}]
}