Share via


Tiler Previews - Get

Create preview of a dataset.

GET https://contoso-catalog.gwhqfdeddydpareu.uksouth.geocatalog.spatio.azure.com/data/collections/{collectionId}/items/{itemId}/preview?api-version=2025-04-30-preview
GET https://contoso-catalog.gwhqfdeddydpareu.uksouth.geocatalog.spatio.azure.com/data/collections/{collectionId}/items/{itemId}/preview?api-version=2025-04-30-preview&assets={assets}&expression={expression}&assetBidx={assetBidx}&asset_as_band={asset_as_band}&nodata={nodata}&unscale={unscale}&algorithm={algorithm}&algorithm_params={algorithm_params}&format={format}&color_formula={color_formula}&dst-crs={dst-crs}&resampling={resampling}&max_size={max_size}&height={height}&width={width}&rescale={rescale}&colormap_name={colormap_name}&colormap={colormap}&return_mask={return_mask}

URI Parameters

Name In Required Type Description
collectionId
path True

string

maxLength: 500
pattern: .*

STAC Collection Identifier

itemId
path True

string

maxLength: 500
pattern: .*

STAC Item Identifier

api-version
query True

string

minLength: 1

The API version to use for this operation.

algorithm
query

Algorithm

Algorithm name

algorithm_params
query

string

Algorithm parameter

asset_as_band
query

boolean

Asset as Band

assetBidx
query

string[]

Per asset band indexes (coma separated indexes)

assets
query

string[]

Asset's names.

color_formula
query

string

rio-color formula (info: https://github.com/mapbox/rio-color)

colormap
query

string

JSON encoded custom Colormap

colormap_name
query

ColorMapNames

Colormap name

dst-crs
query

string

Output Coordinate Reference System.

expression
query

string

Band math expression between assets

format
query

ImageType

Output format for the tile or image (e.g., png, jpeg, webp).

height
query

integer (int32)

Height in pixels for the output image

max_size
query

integer (int32)

Image output size limit if width and height limits are not set.

nodata
query

number (float)

Overwrite internal Nodata value

resampling
query

Resampling

Resampling method.

rescale
query

string[]

comma (',') delimited Min,Max range. Can set multiple time for multiple bands.

return_mask
query

boolean

Add mask to the output data.

unscale
query

boolean

Apply internal Scale or Offset

width
query

integer (int32)

Width in pixels for the output image

Responses

Name Type Description
200 OK

file

Return an image.

Media Types: "image/png", "image/jpeg", "image/jpg", "image/webp", "image/jp2", "image/tiff; application=geotiff", "application/x-binary", "application/json"

Other Status Codes

Azure.Core.Foundations.ErrorResponse

An unexpected error response.

Media Types: "image/png", "image/jpeg", "image/jpg", "image/webp", "image/jp2", "image/tiff; application=geotiff", "application/x-binary", "application/json"

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

TilerPreviews_Get

Sample request

GET https://contoso-catalog.gwhqfdeddydpareu.uksouth.geocatalog.spatio.azure.com/data/collections/ESP-collection/items/18S-2022/preview?api-version=2025-04-30-preview&assets=data&nodata={nodata}&max_size=400

Sample response

"png file bytes"

Definitions

Name Description
Algorithm

Supported algorithms for terrain and index-based analysis

Azure.Core.Foundations.Error

The error object.

Azure.Core.Foundations.ErrorResponse

A response containing error details.

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.

ColorMapNames

Available color maps for data visualization

ImageType

Image format specifier for tile and image requests

Resampling

Resampling algorithm to use when reading source raster data at different resolutions

Algorithm

Supported algorithms for terrain and index-based analysis

Value Description
hillshade

Creates hillshade visualization from elevation data

contours

Generates elevation contour lines

normalizedIndex

Calculates normalized difference index between bands

terrarium

Encodes elevation data in Mapbox Terrarium RGB format

terrainrgb

Encodes elevation data in Mapbox TerrainRGB format

Azure.Core.Foundations.Error

The error object.

Name Type Description
code

string

One of a server-defined set of error codes.

details

Azure.Core.Foundations.Error[]

An array of details about specific errors that led to this reported error.

innererror

Azure.Core.Foundations.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

Azure.Core.Foundations.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

Azure.Core.Foundations.InnerError

Inner error.

ColorMapNames

Available color maps for data visualization

Value Description
accent

Accent colormap - qualitative colormap with distinct colors

accent_r

Reversed accent colormap

afmhot

Afmhot colormap - sequential black-red-yellow-white colormap

afmhot_r

Reversed afmhot colormap

ai4g-lulc

AI for Good land use/land cover colormap

alos-fnf

ALOS forest/non-forest colormap

alos-palsar-mask

ALOS PALSAR mask colormap

autumn

Autumn colormap - sequential red-orange-yellow colormap

autumn_r

Reversed autumn colormap

binary

Binary colormap - simple black and white colormap

binary_r

Reversed binary colormap

blues

Blues colormap - sequential white to dark blue

blues_r

Reversed blues colormap

bone

Bone colormap - grayscale with slight blue tint

bone_r

Reversed bone colormap

brbg

BrBG colormap - diverging brown to blue-green

brbg_r

Reversed BrBG colormap

brg

BrG colormap - diverging brown to green

brg_r

Reversed BrG colormap

bugn

BuGn colormap - sequential white to dark green

bugn_r

Reversed BuGn colormap

bupu

BuPu colormap - sequential white to dark purple

bupu_r

Reversed BuPu colormap

bwr

BWR colormap - diverging blue to red

bwr_r

Reversed BWR colormap

c-cap

C-CAP colormap - land cover classification

cfastie

Cfastie colormap - high contrast colormap

chesapeake-lc-13

Chesapeake land cover 13-class colormap

chesapeake-lc-7

Chesapeake land cover 7-class colormap

chesapeake-lu

Chesapeake land use colormap

chloris-biomass

Chloris biomass colormap

cividis

Cividis colormap - sequential yellow to blue

cividis_r

Reversed cividis colormap

cmrmap

CMRmap colormap - perceptually uniform colormap

cmrmap_r

Reversed CMRmap colormap

cool

Cool colormap - sequential cyan to magenta

cool_r

Reversed cool colormap

coolwarm

Coolwarm colormap - diverging blue to red

coolwarm_r

Reversed coolwarm colormap

copper

Copper colormap - sequential black to copper

copper_r

Reversed copper colormap

cubehelix

Cubehelix colormap - sequential black to white with hue rotation

cubehelix_r

Reversed cubehelix colormap

dark2

Dark2 colormap - qualitative colormap with distinct colors

dark2_r

Reversed dark2 colormap

drcog-lulc

DRCog land use/land cover colormap

esa-cci-lc

ESA CCI land cover colormap

esa-worldcover

ESA WorldCover colormap

flag

Flag colormap - qualitative colormap with distinct colors

flag_r

Reversed flag colormap

gap-lulc

GAP land use/land cover colormap

gist_earth

Gist_earth colormap - perceptually uniform colormap

gist_earth_r

Reversed gist_earth colormap

gist_gray

Gist_gray colormap - grayscale colormap

gist_gray_r

Reversed gist_gray colormap

gist_heat

Gist_heat colormap - sequential black-red-yellow-white colormap

gist_heat_r

Reversed gist_heat colormap

gist_ncar

Gist_ncar colormap - perceptually uniform colormap

gist_ncar_r

Reversed gist_ncar colormap

gist_rainbow

Gist_rainbow colormap - perceptually uniform colormap

gist_rainbow_r

Reversed gist_rainbow colormap

gist_stern

Gist_stern colormap - perceptually uniform colormap

gist_stern_r

Reversed gist_stern colormap

gist_yarg

Gist_yarg colormap - grayscale colormap

gist_yarg_r

Reversed gist_yarg colormap

gnbu

GnBu colormap - sequential white to dark blue-green

gnbu_r

Reversed GnBu colormap

gnuplot

Gnuplot colormap - sequential black to white with hue rotation

gnuplot2

Gnuplot2 colormap - sequential black to white with hue rotation

gnuplot2_r

Reversed gnuplot2 colormap

gnuplot_r

Reversed gnuplot colormap

gray

Gray colormap - grayscale colormap

gray_r

Reversed gray colormap

greens

Greens colormap - sequential white to dark green

greens_r

Reversed greens colormap

greys

Greys colormap - sequential white to dark gray

greys_r

Reversed greys colormap

hot

Hot colormap - sequential black-red-yellow-white colormap

hot_r

Reversed hot colormap

hsv

HSV colormap - hue-saturation-value colormap

hsv_r

Reversed HSV colormap

inferno

Inferno colormap - sequential black to yellow colormap

inferno_r

Reversed inferno colormap

io-bii

IO-BII colormap - biodiversity index colormap

io-lulc

IO-LULC colormap - land use/land cover colormap

io-lulc-9-class

IO-LULC 9-class colormap

jet

Jet colormap - sequential blue-green-yellow-red colormap

jet_r

Reversed jet colormap

jrc-change

JRC change colormap

jrc-extent

JRC extent colormap

jrc-occurrence

JRC occurrence colormap

jrc-recurrence

JRC recurrence colormap

jrc-seasonality

JRC seasonality colormap

jrc-transitions

JRC transitions colormap

lidar-classification

Lidar classification colormap

lidar-hag

Lidar height above ground colormap

lidar-hag-alternative

Alternative lidar height above ground colormap

lidar-intensity

Lidar intensity colormap

lidar-returns

Lidar returns colormap

magma

Magma colormap - sequential black to yellow colormap

magma_r

Reversed magma colormap

modis-10A1

MODIS 10A1 colormap

modis-10A2

MODIS 10A2 colormap

modis-13A1|Q1

MODIS 13A1|Q1 colormap

modis-14A1|A2

MODIS 14A1|A2 colormap

modis-15A2H|A3H

MODIS 15A2H|A3H colormap

modis-16A3GF-ET

MODIS 16A3GF-ET colormap

modis-16A3GF-PET

MODIS 16A3GF-PET colormap

modis-17A2H|A2HGF

MODIS 17A2H|A2HGF colormap

modis-17A3HGF

MODIS 17A3HGF colormap

modis-64A1

MODIS 64A1 colormap

mtbs-severity

MTBS severity colormap

nipy_spectral

Nipy_spectral colormap - perceptually uniform colormap

nipy_spectral_r

Reversed nipy_spectral colormap

nrcan-lulc

NRCAN land use/land cover colormap

ocean

Ocean colormap - sequential blue to white colormap

ocean_r

Reversed ocean colormap

oranges

Oranges colormap - sequential white to dark orange

oranges_r

Reversed oranges colormap

orrd

OrRd colormap - sequential white to dark red-orange

orrd_r

Reversed OrRd colormap

paired

Paired colormap - qualitative colormap with distinct colors

paired_r

Reversed paired colormap

pastel1

Pastel1 colormap - qualitative colormap with pastel colors

pastel1_r

Reversed pastel1 colormap

pastel2

Pastel2 colormap - qualitative colormap with pastel colors

pastel2_r

Reversed pastel2 colormap

pink

Pink colormap - sequential white to dark pink

pink_r

Reversed pink colormap

piyg

PiYG colormap - diverging pink to green

piyg_r

Reversed PiYG colormap

plasma

Plasma colormap - sequential black to yellow colormap

plasma_r

Reversed plasma colormap

prgn

PRGn colormap - diverging purple to green

prgn_r

Reversed PRGn colormap

prism

Prism colormap - qualitative colormap with distinct colors

prism_r

Reversed prism colormap

pubu

PuBu colormap - sequential white to dark blue

pubu_r

Reversed PuBu colormap

pubugn

PuBuGn colormap - sequential white to dark blue-green

pubugn_r

Reversed PuBuGn colormap

puor

PuOr colormap - diverging purple to orange

puor_r

Reversed PuOr colormap

purd

PuRd colormap - sequential white to dark purple-red

purd_r

Reversed PuRd colormap

purples

Purples colormap - sequential white to dark purple

purples_r

Reversed purples colormap

qpe

QPE colormap - qualitative colormap with distinct colors

rainbow

Rainbow colormap - qualitative colormap with distinct colors

rainbow_r

Reversed rainbow colormap

rdbu

RdBu colormap - diverging red to blue

rdbu_r

Reversed RdBu colormap

rdgy

RdGy colormap - diverging red to gray

rdgy_r

Reversed RdGy colormap

rdpu

RdPu colormap - sequential white to dark red-purple

rdpu_r

Reversed RdPu colormap

rdylbu

RdYlBu colormap - diverging red to yellow to blue

rdylbu_r

Reversed RdYlBu colormap

rdylgn

RdYlGn colormap - diverging red to yellow to green

rdylgn_r

Reversed RdYlGn colormap

reds

Reds colormap - sequential white to dark red

reds_r

Reversed reds colormap

rplumbo

Rplumbo colormap - qualitative colormap with distinct colors

schwarzwald

Schwarzwald colormap - qualitative colormap with distinct colors

seismic

Seismic colormap - diverging blue to red

seismic_r

Reversed seismic colormap

set1

Set1 colormap - qualitative colormap with distinct colors

set1_r

Reversed set1 colormap

set2

Set2 colormap - qualitative colormap with distinct colors

set2_r

Reversed set2 colormap

set3

Set3 colormap - qualitative colormap with distinct colors

set3_r

Reversed set3 colormap

spectral

Spectral colormap - diverging red to yellow to blue

spectral_r

Reversed spectral colormap

spring

Spring colormap - sequential magenta to yellow

spring_r

Reversed spring colormap

summer

Summer colormap - sequential green to yellow

summer_r

Reversed summer colormap

tab10

Tab10 colormap - qualitative colormap with distinct colors

tab10_r

Reversed tab10 colormap

tab20

Tab20 colormap - qualitative colormap with distinct colors

tab20_r

Reversed tab20 colormap

tab20b

Tab20b colormap - qualitative colormap with distinct colors

tab20b_r

Reversed tab20b colormap

tab20c

Tab20c colormap - qualitative colormap with distinct colors

tab20c_r

Reversed tab20c colormap

terrain

Terrain colormap - sequential black to white with hue rotation

terrain_r

Reversed terrain colormap

twilight

Twilight colormap - diverging blue to red

twilight_r

Reversed twilight colormap

twilight_shifted

Twilight shifted colormap - diverging blue to red

twilight_shifted_r

Reversed twilight shifted colormap

usda-cdl

USDA CDL colormap - land cover classification

usda-cdl-corn

USDA CDL corn colormap

usda-cdl-cotton

USDA CDL cotton colormap

usda-cdl-soybeans

USDA CDL soybeans colormap

usda-cdl-wheat

USDA CDL wheat colormap

usgs-lcmap

USGS LCMAP colormap

viirs-10a1

VIIRS 10A1 colormap

viirs-13a1

VIIRS 13A1 colormap

viirs-14a1

VIIRS 14A1 colormap

viirs-15a2H

VIIRS 15A2H colormap

viridis

Viridis colormap - sequential black to yellow colormap

viridis_r

Reversed viridis colormap

winter

Winter colormap - sequential blue to green

winter_r

Reversed winter colormap

wistia

Wistia colormap - sequential white to yellow

wistia_r

Reversed wistia colormap

ylgn

YlGn colormap - sequential white to dark green

ylgn_r

Reversed YlGn colormap

ylgnbu

YlGnBu colormap - sequential white to dark blue-green

ylgnbu_r

Reversed YlGnBu colormap

ylorbr

YlOrBr colormap - sequential white to dark orange-brown

ylorbr_r

Reversed YlOrBr colormap

ylorrd

YlOrRd colormap - sequential white to dark red-orange

ylorrd_r

Reversed YlOrRd colormap

ImageType

Image format specifier for tile and image requests

Value Description
png

Portable Network Graphics format - supports transparency

npy

NumPy array format for raw data access

tif

GeoTIFF format for georeferenced raster data

jpeg

JPEG format - smaller file size but lossy compression

jpg

Alternate extension for JPEG format

jp2

JPEG 2000 format - supports both lossy and lossless compression

webp

WebP format - modern image format with good compression

pngraw

Raw PNG format for access to unprocessed data

Resampling

Resampling algorithm to use when reading source raster data at different resolutions

Value Description
nearest

Nearest neighbor - fastest method that selects the closest pixel value

bilinear

Bilinear interpolation - calculates output values using a weighted average of 2x2 input cells

cubic

Cubic interpolation - uses a weighted average of 4x4 input cells for smoother results

cubic_spline

Cubic spline interpolation - similar to cubic but preserves edges better

lanczos

Lanczos windowed sinc resampling - high-quality with minimal artifacts

average

Average resampling - calculates the mean of all contributing pixels

mode

Mode resampling - selects the most common value from contributing pixels

gauss

Gaussian weighted resampling - applies a gaussian weighting to contributing pixels

rms

Root mean square resampling - useful for resampling error or deviation grids