Update 'VRANbs-API.md'

master
Mark van der Wal 2021-04-29 06:33:34 +00:00
parent 06e37088c1
commit 21e4b084c6
1 changed files with 1 additions and 25 deletions

View File

@ -45,31 +45,7 @@ For the currently available public FarmMaps API you can take a look at swagger:
[Upload Data](Upload-Data.md)
###### Transform shape to geotiff
The VRANbs task only processes tiff items as input.
If your input data is a processed shape file it first needs to be converted to geotiff, this can be done with the 'ShapeToGeoTiffTask'.
Pass the code of the shape item into the {code} parameter, this creates a new item with tiff data as a sibling of the shape item with the same parent.
This new geotiff item should be used as input to the vranbs task.
> Request
```javascript
POST /api/v1/items/{code}/tasks
{
"taskType": "vnd.farmmaps.task.shapetogeotiff"
}
```
> Response 201
```javascript
{
"code": "string",
"taskType": "vnd.farmmaps.task.shapetogeotiff"
}
```
Response 400 Tasktype not found
Response 401 Not authenticated
Response 403 No WRITE permissions in item
Response 404 Item not found
[Shape to geotiff](Shape-to-geotiff.md)
##### Using VRA Nitrogen fertilization task
The VraNbs task currently supports 3 operations: