COG & tiles operations

Cloud-optimized GeoTIFF tiling and rendering.

Each operation below is reachable at POST /v1/op/{operation_id} or the resource path POST /v1/{resource}/{action}, with a Bearer token (a gpra_ API key or a session token). Back to the Operations Reference index.

cog.colormaps

Curated colormap groups for the frontend picker (bare-dict).

Scopetiles:read
Side-effectread
HTTPPOST /v1/op/cog.colormaps · POST /v1/cog/colormaps
Python / TypeScriptclient.cog.colormaps(…)
CLIgeopera cog colormaps …

RequestCogEmptyInput (see the OpenAPI schema for fields).

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.

cog.formulas

Predefined spectral-index formula templates (bare-dict, keyed by index id).

Scopetiles:read
Side-effectread
HTTPPOST /v1/op/cog.formulas · POST /v1/cog/formulas
Python / TypeScriptclient.cog.formulas(…)
CLIgeopera cog formulas …

RequestCogEmptyInput (see the OpenAPI schema for fields).

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.

cog.statistics

AOI-scoped percentile statistics for a COG — drives per-AOI colormap rescale.

Scopetiles:read
Side-effectread
HTTPPOST /v1/op/cog.statistics · POST /v1/cog/statistics
Python / TypeScriptclient.cog.statistics(…)
CLIgeopera cog statistics …

RequestCogStatsInput

FieldTypeRequiredDescription
urlstringyes
geometryobjectyes
expressionstring
bandsstring
percentilesarray of any

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.

cog.thumbnail

Generate a JPEG thumbnail from the smallest COG overview.

Scopetiles:read
Side-effectread
HTTPPOST /v1/op/cog.thumbnail · POST /v1/cog/thumbnail
Python / TypeScriptclient.cog.thumbnail(…)
CLIgeopera cog thumbnail …

RequestCogThumbnailInput

FieldTypeRequiredDescription
urlstringyes
widthinteger
heightinteger

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.

cog.tile.render

Render an XYZ tile from a COG (bands or band-math expression).

Scopetiles:read
Side-effectread
HTTPPOST /v1/op/cog.tile.render · POST /v1/cog/tile/render
Python / TypeScriptclient.cog.tile.render(…)
CLIgeopera cog tile render …

RequestCogTileInput

FieldTypeRequiredDescription
urlstringyes
zintegeryes
xintegeryes
yintegeryes
formatstringyes
bandsstring
expressionstring
rescalestring
colormapstring
qualityinteger
aoistring

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.

cog.tile.terrain

Render a Mapbox Terrain-RGB tile from a single-band elevation/depth COG.

Scopetiles:read
Side-effectread
HTTPPOST /v1/op/cog.tile.terrain · POST /v1/cog/tile/terrain
Python / TypeScriptclient.cog.tile.terrain(…)
CLIgeopera cog tile terrain …

RequestCogTerrainInput

FieldTypeRequiredDescription
urlstringyes
zintegeryes
xintegeryes
yintegeryes
invertboolean
aoistring

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.