Field Operations sample responses
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.
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
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
The filtered GeoJSON is the file that went through the data cleaning process, removing the points with the following criteria:
0.5 m/s(for all operation types)
The generated files will be used as a basis for generating new operations images.
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
To disable the removal of outliers just use the
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
You can move through the four tabs below to see a sample of how Leaf returns each of the operation types.
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.
filteredGeoJSON fails to process, images will continue to be generated from the
Important: once active, the images will be available for access only via the
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.