Stac Collection Render Options - Create Or Replace
Update Collection Render Option
Update a render option for a given collection
PUT https://contoso-catalog.gwhqfdeddydpareu.uksouth.geocatalog.spatio.azure.com/stac/collections/{collectionId}/configurations/render-options/{renderOptionId}?api-version=2025-04-30-preview
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
collection
|
path | True |
string maxLength: 500pattern: .* |
Unique identifier for the STAC collection. |
render
|
path | True |
string maxLength: 500pattern: .* |
Unique identifier for the render option. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
id | True |
string minLength: 1maxLength: 30 pattern: ^(?!\-|_)[a-zA-Z0-9_-]*(? |
Unique identifier for the render option. |
name | True |
string maxLength: 40 |
Short descriptive name for the render option. |
conditions |
A list of property/value conditions that must be in the active mosaic CQL for this render option to be enabled |
||
description |
string |
A longer description of the render option that can be used to explain its content. |
|
legend |
Legend configuration for this render option. |
||
minZoom |
integer (int32) maximum: 24 |
Minimum zoom level at which to display this layer. |
|
options |
string |
A URL query-string encoded string of TiTiler rendering options. Valid only for
|
|
type |
The type of rendering to apply (raster or vector). |
||
vectorOptions |
Options for rendering vector tiles. Valid only for |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The request has succeeded. |
|
201 Created |
The request has succeeded and a new resource has been created as a result. |
|
Other Status Codes |
An unexpected error response. Headers x-ms-error-code: string |
Security
OAuth2Auth
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
https://geocatalog.spatio.azure.com/.default |
Examples
StacCollectionRenderOptions_CreateOrReplace
Sample request
PUT https://contoso-catalog.gwhqfdeddydpareu.uksouth.geocatalog.spatio.azure.com/stac/collections/36fcb8da-9b15-49e0-b400-0d2e751e2061/configurations/render-options/atmospheric-penetration?api-version=2025-04-30-preview
{
"name": "Atmospheric penetration",
"description": "False color rendering with non-visible bands to reduce effects of atmospheric particles (B12, B11, B8A).",
"type": "raster-tile",
"options": "nodata=0&assets=B12&assets=B11&assets=B8A&color_formula=Gamma RGB 3.7 Saturation 1.5 Sigmoidal RGB 15 0.35",
"vectorOptions": null,
"minZoom": 9,
"legend": null,
"conditions": null,
"id": "atmospheric-penetration"
}
Sample response
{
"id": "atmospheric-penetration",
"name": "Atmospheric penetration",
"description": "False color rendering with non-visible bands to reduce effects of atmospheric particles (B12, B11, B8A).",
"type": "raster-tile",
"options": "nodata=0&assets=B12&assets=B11&assets=B8A&color_formula=Gamma RGB 3.7 Saturation 1.5 Sigmoidal RGB 15 0.35",
"minZoom": 9
}
{
"id": "atmospheric-penetration",
"name": "Atmospheric penetration",
"description": "False color rendering with non-visible bands to reduce effects of atmospheric particles (B12, B11, B8A).",
"type": "raster-tile",
"options": "nodata=0&assets=B12&assets=B11&assets=B8A&color_formula=Gamma RGB 3.7 Saturation 1.5 Sigmoidal RGB 15 0.35",
"minZoom": 9
}
Definitions
Name | Description |
---|---|
Azure. |
The error object. |
Azure. |
A response containing error details. |
Azure. |
An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors. |
Legend |
Legend type to make,
one of: |
Render |
Defines visualization parameters for rendering data on a map. |
Render |
Defines a condition for enabling a render option. |
Render |
Configuration for generating a data legend. |
Render |
Specifies the types of render options for map visualization. |
Render |
Defines parameters for vector tile rendering. |
Azure.Core.Foundations.Error
The error object.
Name | Type | Description |
---|---|---|
code |
string |
One of a server-defined set of error codes. |
details |
An array of details about specific errors that led to this reported error. |
|
innererror |
An object containing more specific information than the current object about the error. |
|
message |
string |
A human-readable representation of the error. |
target |
string |
The target of the error. |
Azure.Core.Foundations.ErrorResponse
A response containing error details.
Name | Type | Description |
---|---|---|
error |
The error object. |
Azure.Core.Foundations.InnerError
An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors.
Name | Type | Description |
---|---|---|
code |
string |
One of a server-defined set of error codes. |
innererror |
Inner error. |
LegendConfigType
Legend type to make,
one of: continuous
,
classmap
,
interval
or none
(note, none
is a string literal).Defines the legend configuration types for data visualization.
Value | Description |
---|---|
continuous |
Continuous color ramp legend. |
classmap |
Classified map with discrete colors for classes. |
interval |
Interval-based legend with discrete ranges. |
none |
No legend. |
RenderOption
Defines visualization parameters for rendering data on a map.
Name | Type | Default value | Description |
---|---|---|---|
conditions |
A list of property/value conditions that must be in the active mosaic CQL for this render option to be enabled |
||
description |
string |
A longer description of the render option that can be used to explain its content. |
|
id |
string minLength: 1maxLength: 30 pattern: ^(?!\-|_)[a-zA-Z0-9_-]*(? |
Unique identifier for the render option. |
|
legend |
Legend configuration for this render option. |
||
minZoom |
integer (int32) maximum: 24 |
12 |
Minimum zoom level at which to display this layer. |
name |
string maxLength: 40 |
Short descriptive name for the render option. |
|
options |
string |
A URL query-string encoded string of TiTiler rendering options. Valid only for
|
|
type | raster-tile |
The type of rendering to apply (raster or vector). |
|
vectorOptions |
Options for rendering vector tiles. Valid only for |
RenderOptionCondition
Defines a condition for enabling a render option.
Name | Type | Description |
---|---|---|
property |
string |
Property name to check in the active CQL filter. |
value |
string |
Value that the property must equal. |
RenderOptionLegend
Configuration for generating a data legend.
Name | Type | Description |
---|---|---|
labels |
string[] |
Text labels to display on the legend. |
scaleFactor |
number (float) |
A factor to multiply interval legend labels by. Useful for scaled rasters whose colormap definitions map to unscaled values, effectively showing legend labels as scaled values. |
trimEnd |
integer (int32) |
Number of items to trim from the end of the legend. |
trimStart |
integer (int32) |
The number of items to trim from the start of the legend definition. Used if there are values important for rendering (e.g. nodata) that aren't desirable in the legend. |
type |
Legend type to make,
one of: |
RenderOptionType
Specifies the types of render options for map visualization.
Value | Description |
---|---|
raster-tile |
Raster tile rendering type. |
vt-polygon |
Vector tile polygon rendering type. |
vt-line |
Vector tile line rendering type. |
RenderOptionVectorOptions
Defines parameters for vector tile rendering.
Name | Type | Description |
---|---|---|
fillColor |
string |
Fill color for polygon features. |
filter |
string[] |
MapBox GL filter expression to filter features. |
sourceLayer |
string |
Name of the source layer in the vector tiles. |
strokeColor |
string |
Stroke color for line features. |
strokeWidth |
integer (int32) |
Width of line strokes in pixels. |
tilejsonKey |
string |
Asset key containing the TileJSON URL. |