DroneDeploy
Search…
Fetching Exports
To fetch the exports you first need to fetch the MapPlan. You can do this by using the node query. For details see the Fetching a Single Object section.
1
query GetExports{
2
node(id:"MapPlan:5a0de0835f1e08eaabc732bd"){
3
... on MapPlan{
4
exports(first:5){
5
edges {
6
node {
7
id
8
user{
9
username
10
}
11
parameters {
12
projection
13
merge
14
contourInterval
15
fileFormat
16
resolution
17
}
18
status
19
dateCreation
20
downloadPath
21
}
22
}
23
}
24
}
25
}
26
}
Copied!
This returns the data:
1
{
2
"data": {
3
"node": {
4
"exports": {
5
"edges": [
6
{
7
"node": {
8
"id": "Export:5ab165f348273300019b14a3",
9
"user": {
10
"username": "[email protected]"
11
},
12
"parameters": {
13
"projection": 3857,
14
"merge": true,
15
"contourInterval": null,
16
"fileFormat": "GEOTIFF",
17
"resolution": 0
18
},
19
"status": "PROCESSING",
20
"dateCreation": "2018-03-20T19:50:11.523000+00:00",
21
"downloadPath": null
22
}
23
}
24
]
25
}
26
}
27
}
28
}
Copied!

Checking the status of an Export

If you want to keep checking back on the status of a given export you can use the same query shown in Fetching a Single Object to get it.
1
query GetExport{
2
node(id:"Export:5ab165f348273300019b14a3"){
3
... on Export{
4
status
5
downloadPath
6
}
7
}
8
}
Copied!