Beta > Layers Endpoints
About
You can now get layers (tassel count, stand count, NVDI, and RGB) through the Sentera integration. Please make sure to follow the Sentera integratation steps before getting layers.
All HTTP methods should be prepended by this service's endpoint:
See below the REST resources and their endpoints available in this service.
Description | Endpoints |
---|---|
Get all the layers for a Leaf User | GET /users/{leafUserId}/layers |
Upload a layer to Climate FieldView | POST /users/{leafUserId}/layers/climateFieldView |
Layers (BETA)
Get all the layers for a Leaf User
 GET /users/{leafUserId}/layers
Gets a paged list of layers that belong for a Leaf User.
Parameter (to filter by) | Values |
---|---|
type | TASSEL_COUNT , STAND_COUNT , NVDI , and RGB |
You can also pass some parameters used exclusively for paging through results. They are:
page
, an integer specifying the page being fetched (default is 0)size
, an integer specifying the size of the page (max is 100)
the default value for page size is 20
If the parameters page and size are not set, the endpoint will return 20 results.
Request examples
- cURL
- Python
- JavaScript
Response
Upload a layer to Climate FieldView
 POST /users/{leafUserId}/layers/climateFieldView
Send a layer file to Climate FieldView.
Parameter | Values |
---|---|
uploadType | RGB |
Currently, only true color image (RGB) files are supported and must meet the following criteria required by Climate:
- The image needs to be a multi band GeoTIFF with 24-bit composite values (must contain 3 bands in the order Red, Green, Blue)
- The Coordinate Reference System (CRS) must be UTM with WGS84 datum
- The following metadata (GDAL_METADATA tag) entries are required to be embedded in the GeoTIFF:
- acquisitionStartDate - ISO8601 date
- acquisitionEndDate - ISO8601 date
- isCalibrated - boolean
Although Climate FieldView supports files up to 500MB, at this time, we only accept files up to 5MB.
Request examples
- cURL
- Python
- JavaScript
Response
info
Uploaded layers are not stored on Leaf side and are only available for use directly in Climate FieldView