Field Operations sample responses
Overview
This page shows and describes sample responses from Leaf API, along with a list of what properties you can expect for each type of data.
Field Operations
A Field Operation processed by Leaf's API returns a list of content that contains most of the basic info related to the authenticated user, and also the Field Boundaries and File Operations attached to each other by the background processing.
Here's an example of a Field Operation
Field operations have many features that can be accessed via /featureName
added to the base url, ranging from the
standardized data to the operation units. Here's a sample response of each of these features.
Field Operations Standard GeoJSON
Here's an example of a standard geojson from a Field Operation
Field Operations Filtered GeoJSON
tip
To use this option, the operationsFilteredGeojson configuration must be enabled.
Here's an example of a filtered geojson from a Field Operation that can be access from the /operations/{id}/filteredGeojson
endpoint.
The filtered GeoJSON is the file that went through the data cleaning process, removing the points with the following criteria:
speed
less than0.5 m/s
(for all operation types)
The generated files will be used as a basis for generating new operations images.
Outliers
To remove outliers in harvest data, you can use configurations to clean the filteredGeoJSON based on standard deviation.
All points with the harvested volume value far 3
standard deviation from the mean will be excluded. This is the default value and can be changed in the operationsOutliersLimit
configuration.
To disable the removal of outliers just use the operationsRemoveOutliers
configuration.
Field Operations Summary
Here's an example of a summary from a Field Operation. It's important to mention that the output displayed in the Field
Operation Summary is heavily impacted by the operationType
property.
You can move through the four tabs below to see a sample of how Leaf returns each of the operation types.
- Planted
- Harvested
- Applied
- Tillage
Field Operations Images
Here is an example of Images from Field Operations.
Field Operations Images V2
This endpoint version produces images based on the filteredGeoJSON, therefore it will be active whenever the data filter option is active.
The new images have considerable improvements over the previous one. They are generated with a standard fixed color ramp and the data is automatically distributed into 7 classes using quantile classification.
Note that the return is different from the previous version, with extent and legend attributes now available.
If the filteredGeoJSON
fails to process, images will continue to be generated from the standardGeoJSON
.
tip
Important: once active, the images will be available for access only via the /imagesV2
endpoint.
Field Operations GeoTIFF Images
This endpoint produces images based on the filteredGeoJSON. To access the images, besides having the data filter option active, it is required the operationsImageAsGeoTiff configuration enabled as well.
In the result we displayed a list of the GeoTIFF images for each property available.
Field Operations Units
Here is an example of Units from the numerical properties of the Field Operations.
- Planted
- Harvested
- Applied
- Tillage