Stack rasters
This endpoint allows you to stack raster data from multiple layers/timestamps. You can retrieve the raster stack as raw data of style it as a png.
Description
Retrieves a tif or png file of the (styled) raster stack.
Endpoint
/path/raster/timestamp/stack/{z}/{x}/{y}?token={token}
Method
GET
Access Level Rules
Minimum Access Level
view for visual and view+ when applyStyle is set to false
Processing Units
Minimum processing units
1
Parameters
stack
An array of JSONs. Each JSON should have properties "pathId", "timestampId" and "bandNumber". The mentioned bands will be stacked in the order they are in the array.
true
style
true
x
The x coordinate of the tile.
true
y
The y coordinate of the tile.
true
z
The zoom level of the tile.
true
token
Userβs login token.
false, token can also be passed in through the authorization header
Default null.
mask
A geojson polygon in wgs84 coordinates to mask the stack.
false
Default null.
applyStyle
Boolean indicating whether to style the tile. If true a PNG is returned if false the style is ignored and a tiff file is returned instead.
false
Defaut true.
Example of a valid stack request
This creates a raster with two bands. Each band coming from the specified band, timestamp and layer combination.
A valid style for the above mentioned stack would be:
This visualizes the difference between the first and second band in the stack.
See here to find how to create a style object.
Last updated
Was this helpful?