Add style

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

NameDescriptionRequiredDefault

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

  • Parameter for the visualization.

  • The parameter details are defines in the table below.

true

description

A description as string

false

Sample requests for different methods

{
    "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}]}
    }
}
πŸ–ŒοΈpageRaster styling methods

Last updated