Add raster style

This API call has been replaced. See this page to find the new documentation.

Description

Adds a raster style.

Endpoint

/path/{pathId}/raster/style

Method

POST

Access Level Rules

Minimum Access Level

edit+

Processing Units

Minimum processing units

2

Parameters

Name
Description
Required
Default

pathId

The id of the raster layer.

true

name

The name of the layer to add.

true

method

Name of the visualization method. Must be one of the following: - bandToColor - hillShade - vectorField - rgb - formula - classToColor

true

parameters

The parameter for the visualization. See details on the required parameters for every styling method in the table below.

true

description

A description as string.

false

Default null.

Sample requests for different methods

//Assings bands to a specific color channel (red, green or blue)
{
    "method": "rgb",
    "name": "Create a false or true color image based on 3 bands",
    "parameters": {
        "bands": [
            {
                "bandNumber": 1,
                "color": "red",
                "bias": 1,
                "weight": 8
            },
            {
                "bandNumber": 2,
                "color": "green",
                "bias": -4,
                "weight": 3
            },
            {
                "bandNumber": 3,
                "color": "blue",
                "bias": -3,
                "weight": 2.3
            }
        ],
        "alpha": 1,
        "noData":[{"bandNumber":1,"fromValue":0,"toValue":1}]}
    }
}

Last updated

Was this helpful?