GeoPard Tutorials
Ask or search…
⌃K

80. Query: Get Original Data

Query to get the copy of the uploaded original data of "SoilDataset", "YieldDataset", "AsAppliedDataset".
Recommended retrieving only a single dataset originDataUrl per request.
GEOTIFF and GEOJSON are available as formats. But only GEOJSON is now supported.
originDataUrl link is accessible for only 60 sec.

1. Sample for SoilDataset

1
query GetOriginalDataOfSoilDataset {
2
getFarms (farmUuids: ["<placeholder_of_farm_uuid>"]){
3
uuid
4
fields (fieldUuids: ["<placeholder_of_field_uuid>"]) {
5
uuid
6
soilDatasets(soilDatasetUuids: ["<placeholder_of_dataset_uuid>"]) {
7
uuid
8
originDataUrl(format: GEOJSON)
9
}
10
}
11
}
12
}

2. Sample for YieldDataset

1
query GetOriginalDataOfYieldDataset {
2
getFarms (farmUuids: ["<placeholder_of_farm_uuid>"]){
3
uuid
4
fields (fieldUuids: ["<placeholder_of_field_uuid>"]) {
5
uuid
6
yieldDatasets(yieldDatasetUuids: ["<placeholder_of_dataset_uuid>"]) {
7
uuid
8
originDataUrl(format: GEOJSON)
9
}
10
}
11
}
12
}

3. Sample for AsAppliedDataset

1
query GetOriginalDataOfAsAppliedDataset {
2
getFarms (farmUuids: ["<placeholder_of_farm_uuid>"]){
3
uuid
4
fields (fieldUuids: ["<placeholder_of_field_uuid>"]) {
5
uuid
6
asAppliedDatasets(asAppliedDatasetUuids: ["<placeholder_of_dataset_uuid>"]) {
7
originDataUrl(format: GEOJSON)
8
}
9
}
10
}
11
}

4. Download the generated file

After the successful preparation of the file, it is possible to download it using curl or a similar approach.
NOTE: originDataUrl link is accessible for only 60 sec.
1
curl '<originDataUrl>' --compressed >> '<local_filepath>'