16. Query: Get YieldDatasets

Overview

Get all YieldDatasets for the selected Field.

YieldDatasets can be fetched using generic GraphQL queries:

  1. getFarms using the complete hierarchy Farm > Field > YieldDataset with its filters

  2. getFields from the linked Field and the hierarchy Field > YieldDataset

  3. getYieldDatasets with a wide range of filters and pagination

circle-exclamation

Yield Dataset Entity

YieldDataset includes many attributes. GraphQL lets you fetch only the required fields, significantly reducing request and response size. Detailed explanations for each attribute are provided inline below.

circle-info

Attributes in the "YieldDataset" marked below as coming from metainformation are optional. They are derived from the dataset's metainformation, which isn't inherently present in every YieldDataset.

circle-check
circle-check
{
  uuid
  name #pattern "<OperationType> <YYYY-mm-DD>" Tillage
  number #total number of geofeatures
  geometryType #Polygons or Points
  totalCoveredArea(unit: HECTARES) #total area of all geometries (relevant for Polygons)
  fieldCoverage #percent of the field covered by the dataset
  fieldCoveredArea(unit: HECTARES) #union of geometries (without duplicates)

  attributes
  fullAttributes { #complete details per attribute
    name #link to statistics >> attribute
    transliteratedName
    fullName #correct human-readable name
    unit#units of measure
  }

  usedMachines { #used machines, which comes from the metainformation
    id
    serial
    operatorId
  } 

  createdDate #entity created datetime in GeoPard
  updatedDate #last update datetime
  operationId
  operationType
  operationFileDate #file creation datetime comes from the metainformation 
  operationStartDate #start of the operation comes from the metainformation
  
  statistics { #statistics distribution for every attribute
    attribute
    min
    max
    avg
    mdn
    var
    std
    sum
  }
  
  cropName #crop name comes from the metainformation
  cropToken #crop token (in uppercase) comes from the metainformation

  appliedCorrections #list of applied corrections in the mentioned order
  appliedCorrectionsVersion #version of the used correction algorithm

  geoMaps {
    url
    shortName #prefix options: raw, thumbnail_raw, processed, thumbnail_processed
    hexColorCodes
    classes
  } 
}

1. Query getFarms

Request

Response

2. Query getFields

Request

Response

3. Query getYieldDatasets

Request the First Page

Response of the First Page

Request the Following Page

Pagination parameters are passed via lastEvaluatedKey, using the value returned in the First Page response above.

Response of the Following Page

Last updated

Was this helpful?