Upload Raster Files
Description
This route is used to upload .tif or any other 'raster images' like drone, soil etc:
you can add color settings to customize the output png.
Endpoints
- /raster_images/upload/{fileName}
Method type
POST
Parameters
name | description | type | Required | Default Value |
---|---|---|---|---|
token | Your identification token | string | required | |
cmap | A color Map see Complete list | string | optional | "RdYlGn" |
min | the minimum value of the scale | float | optional | smallest value inside the tiff file |
max | the maximum value of the scale | float | optional | biggest value inside the tiff file |
Responses
status code | description |
---|---|
200 | The raster images has been uploaded successfully |
400 | Bad Request or a required parameter is missing |
500 | Error! Could not upload the file |
Example Request
POST https://spacesense-api.ew.r.appspot.com/raster_images/upload/DeFilippo_index_cvi.tif?token=__myToken__&cmap=__colormap__&min=__minValue__&max=__maxValue__
Example Response
The response is a link you can use to upload your file.
{
"message" : "Raster images upload url with colormap parameters is ready"
"url": "https://storage.googleapis.com/api-service-storage/xfarm/raster_images/DeFilippo_index_cvi.tif?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=483104852596-compute%40developer.gserviceaccount.com%2F20200922%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20200922T121746Z&X-Goog-Expires=900&X-Goog-SignedHeaders=content-type%3Bhost&X-Goog-Signature=1fab89973a682dee7d0b3320e74debb3a4ef331a78f547ebc24b3f9a8463685664a0a7231892f425fb1eb58a31ecdf5d08569f3cab52dcdc2309ee280ce48febb8f337654807351efac9333afa1f6a74b284c02eede589d381250dde985503c14231b75aac805c742a072f5170f554011031b2faa08088ec3bcac6c2df24990ba4c03526a4f8f6f7e2606e068475644484e3602126a85a5bb86925adec2c9ee57a793cebf0e6812c5ed4aea9a542584dde09fa2a380fd7d482cbf1ec28f33405303e3c7043ce52ae8422dcc31b795d97e392b8794adcf21229c7147c1725304a49a37136183f2414ac7bb145ab85b64aa505361ff9a634248707b3a0558646fb"
}
Once uploaded, our servers will process it. For now, please give 24hrs for processing. In near future we will speed it up to few minutes.
Color map
Perceptually Uniform Sequential
Sequentials
Diverging
Cyclic
qualitative
miscellaneous
Test Files
Download example file for your test: