Skip to main content

Albatross Tiles

View the map layers delivered via Albatross in a web map or GIS software.
The Tiles API serves imagery via the slippy map (XYZ) and the Web Map Tile Service (WMTS) protocols. values. To add your data to your GIS software, see Add your data to GIS software.

Identifiers​

Every tile request requires a collection, item and asset.
In Albatross terms a collection is your workspace, an item is a deliverable and asset is a map layer:

In the pathIsExample
collection_idYour workspace_id6603439307
item_idA deliverable_id019feff4-6c2a-7d51-9e6b-1f0c2b7a4e10
assetsA map_layerrgb, dtm

They are the same ids the Albatross web app uses: in its URLs the workspace_id follows /workspaces/, and a deliverable_id follows /deliverables/.

The available map layer types are rgb (true colour), cir (colour infrared), pms (pansharpened multispectral), pan (panchromatic), dtm (digital terrain model), dsm (digital surface model) and ras (analysis raster).

tip

GET /collections/{collection_id}/items lists every deliverable you can read with a tile URL for each of its map layers.

Authentication​

Most routes require a credential to access and will only return data from the projects in the credentials scope.

  • API key: created by a workspace admin in Albatross. There are two options for supplying this key:
    • Add it in the header as Authorization: Bearer alb_...
    • Set it as the password for HTTP Basic authentication with any username

A key should never go in a URL. When a key is rotated, the old key will stop working in less than a minute.

The colormap, algorithm and tiling scheme routes are public.

Tiles for web maps​

XYZ tiles for one deliverable or for the whole workspace as one mosaic:

GET /collections/{collection_id}/items/{item_id}/tiles/WebMercatorQuad/{z}/{x}/{y}.png?assets=rgb
GET /collections/{collection_id}/tiles/WebMercatorQuad/{z}/{x}/{y}.png

The matching tilejson.json describes the tiles for MapLibre, Leaflet or OpenLayers.
By default tiles are 256 pixels a side, but a tilejson.json describes 512 pixel tiles unless you add tilesize=256 to the request (see below). WebMercatorQuad suits almost every web map but the other tiling schemes available are listed at ` Tiling schemes.

tip

By default the mosaic uses every deliverable with the newest capture on top. Create a custom mosaic using the datetime, bbox, ids or a CQL2 filter options.

512 pixel tiles​

Add tilesize=512 to a tile request for 512 pixels tiles. A 512 pixel tile contains four times the pixels compared to a 256 pixel tile and counts as four tiles.
As they use the same tiling scheme, a 512 pixel tile covers the same footprint as a 256 pixel tile but at a higher resolution.

info

512 pixel tiles are also known as HiDPI or Retina tiles

Using 512 pixel tiles and rendering one zoom level lower (z - 1) reduces the total number of network requests required which can improve latency and map load time.\

Tell your map library the tiles are 512 pixels so it does this for you:

  • MapLibre: tileSize: 512
  • Leaflet: tileSize: 512, zoomOffset: -1
  • OpenLayers: tileSize: [512, 512]

Formats and styling​

  • Visual products (rgb, cir) come as PNG, JPEG or WebP.
  • Analysis products (dtm, dsm, pms, ras etc.) are delivered as PNG for display only or as a GeoTIFF (.tif) containing the real values for analysis.
  • Styling a single-band layer: name a colour ramp with colormap_name (see Colormaps), set the range with rescale=min,max, or process the pixels first with algorithm (see Algorithms). WMTS shows dtm and dsm as tinted relief (algorithm=relief) and ras through the turbo colormap by default.

Responses​

StatusMeans
200The tile or document
204A mosaic tile with no data under it
401No credential, or one Albatross does not accept
403The API key lacks the tiles:read scope, or map tiles are not enabled
404No such workspace or deliverable among the projects you can read
422An invalid parameter, such as a tilesize other than 256 or 512, or a buffer over 8
503Albatross could not check the credential; nothing is served unchecked

Caching and usage​

Successful responses may be cached by the client for an hour (Cache-Control: private, max-age=3600). Tiles served to an API key count towards your workspace's monthly usage based on their size.
Requesting documents, metadata and statistics are not counted.
See Metering for how usage is calculated and how to check it.