47. Query: Get "ZonesMaps"
Query to get user "ZonesMaps". To implement pagination logic, use the query parameter pageSize. The filter works like AND condition, e.g. possible to filter by farmUuid, fieldUuid, vectorAnalysisMapUuid, labels, purpose, type, and withRatesOnly in the one query or use just one filter condition or use no condition.
Restrictions: filtering by purpose, type, and withRatesOnly works only in conjunction with fieldUuid. It is allowed to search zones maps by vectorAnalysisMapUuid single attribute.
There are lastEvaluatedKey and totalCount in response. The lastEvaluatedKey refers to the last processed record to match filter conditions. The totalCount - is the total number of records that match the filtering conditions.
Template
query FilterZonesMapsSample {
getZonesMaps(
filter: {
pageSize: 10
fieldUuid: "<placeholder_of_field_uuid>"
farmUuid: "<placeholder_of_farm_uuid>"
purpose: SEEDING
type: SATELLITE
labels: ["id=field"]
withRatesOnly: true
vectorAnalysisMapUuid: "<placeholder_of_vectoranalysismap_uuid>"
}
) {
zonesMaps {
uuid
name
zonesMapGeojson(unit: ACRES)
zonesMapUrl
}
totalCount
lastEvaluatedKey {
PartitionKey
SortKey
TagString
}
}
}Request
query FilterZonesMapsSample {
getZonesMaps(
filter: {
pageSize: 3
fieldUuid: "a716fd04-4f78-4ce8-b712-ffb88bd2acdd"
purpose: GENERAL
}
) {
zonesMaps {
uuid
name
zonesMapUrl
}
lastEvaluatedKey {
PartitionKey
SortKey
TagString
}
}
}Response
Metadata
Response contains the JSON below.
{
"data": {
"getZonesMaps": {
"zonesMaps": [
{
"uuid": "ff06c914-7b87-4e67-991e-7b63c29967ee",
"name": "GP_Auto_Nitrogen_Use_Efficiency_GP Value",
"zonesMapUrl": "https://api.geopard.tech/geo/feature?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=yield_zone_map_view&OUTPUTFORMAT=application/json&VIEWPARAMS=uuid:ff06c914-7b87-4e67-991e-7b63c29967ee"
},
{
"uuid": "ec8cd4db-efe9-40a3-b616-7169bcde9be9",
"name": "7 Years 2016-2023",
"zonesMapUrl": "https://api.geopard.tech/geo/feature?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=zone_map_view&OUTPUTFORMAT=application/json&VIEWPARAMS=uuid:ec8cd4db-efe9-40a3-b616-7169bcde9be9"
},
{
"uuid": "eb4ddd50-ff38-4467-b8e0-cce26be699c8",
"name": "VR Seeding",
"zonesMapUrl": "https://api.geopard.tech/geo/feature?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=multilayers_zone_map_view&OUTPUTFORMAT=application/json&VIEWPARAMS=uuid:eb4ddd50-ff38-4467-b8e0-cce26be699c8"
}
],
"lastEvaluatedKey": {
"PartitionKey": "a716fd04-4f78-4ce8-b712-ffb88bd2acdd",
"SortKey": "eb4ddd50-ff38-4467-b8e0-cce26be699c8",
"TagString": null
}
}
}
}Zone Statistics and Geometries
Details about Zone Statistics and Geometries are in zonesMapUrl .
The sample of Statistics from properties is below.
"properties": {
"mapUuid": "ff06c914-7b87-4e67-991e-7b63c29967ee",
"zone": 1,
"attributes": {
"avg": 70.427,
"max": 103.0,
"min": 56.0,
"std": 11.456,
"sum": 30847.0,
"area": 4000.0073042009,
"index": "VALUE",
"median": 66.0
},
"createdDate": "2023-10-12T22:09:26.447Z",
"updatedDate": "2023-10-12T22:09:26.447Z",
"minZone": 1,
"avgZone": 3,
"maxZone": 5,
"sqm": 4000.01
}Last updated
Was this helpful?