GeoPard Tutorials
Ask or search…
K

17. Query: Get "SoilDatasets"

Get all "SoilDatasets" for the selected "Field". Datasets can be fetched using generic GraphQL queries like getFarms and getFields from the linked "Field".
A "SoilDataset" has to be uploaded in advance.
1
query GetSoilDatasetsViaGetFarms {
2
getFarms (farmUuids: ["<placeholder_of_farm_uuid>"]) {
3
uuid
4
fields (fieldUuids: ["<placeholder_of_field_uuid>"]) {
5
uuid
6
soilDatasets {
7
uuid
8
name #pattern "<OperationType> <YYYY-mm-DD>"
9
operationId #if exists
10
number #total number of geofeatures
11
geometryType
12
totalCoveredArea(unit: HECTARES)
13
fieldCoverage
14
fieldCoveredArea(unit: HECTARES)
15
16
fullAttributes { #complete details per attribute
17
name #link to statistics >> attribute
18
transliteratedName
19
fullName #if exists
20
unit #if exists
21
}
22
23
createdDate #entity created datetime in GeoPard
24
updatedDate #last update datetime
25
operationType
26
operationId
27
operationFileDate #file creation datetime
28
operationStartDate #start of the operation
29
30
statistics { #statistics distribution for every soil attribute
31
attribute
32
min
33
max
34
avg
35
mdn
36
var
37
std
38
sum
39
}
40
41
geoMaps {
42
url
43
shortName
44
hexColorCodes
45
classes
46
}
47
}
48
}
49
}
50
}
1
query GetSoilDatasetsViaGetFields {
2
getFields(filter: {fieldUuid: "<placeholder_of_field_uuid>" ) {
3
fields {
4
uuid
5
soilDatasets {
6
uuid
7
name
8
operationId #if exists
9
number #total number of geofeatures
10
geometryType
11
totalCoveredArea(unit: HECTARES)
12
fieldCoverage
13
fieldCoveredArea(unit: HECTARES)
14
15
fullAttributes {
16
name #link to statistics >> attribute
17
transliteratedName
18
fullName #if exists
19
unit #if exists
20
}
21
22
createdDate #created datetime in GeoPard
23
updatedDate #last update datetime in GeoPard
24
operationFileDate #file creation datetime (if exists)
25
operationStartDate #start of the operation (if exists)
26
27
statistics { #statistical distribution for every soil attribute
28
attribute
29
min
30
max
31
avg
32
mdn
33
var
34
std
35
sum
36
}
37
38
geoMaps { #visual representation
39
url
40
shortName
41
hexColorCodes
42
classes
43
}
44
}
45
}
46
}
47
}