Download Cog
const url = 'https://example.com/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/download/cog';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/download/cogDownload the Cloud-Optimized GeoTIFF for a raster dataset.
Local storage: streams the COG file with Content-Type image/tiff. S3 storage: returns a 302 redirect to a presigned GET URL (1-hour expiry). Accepts standard auth or ?token= JWT query parameter for browser downloads.
KNOWN-01 (Phase 1071): user may be None when a no-sub anonymous
download token (issued by POST /auth/download-token/{id} for a public
dataset) is presented on ?token=. The function branches on
user-None to enforce public visibility and emit the audit row with
user_id=NULL.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”Successful Response
Bad request — invalid query parameters or payload
Forbidden — caller lacks access to this resource
Not found
Validation error
Too many requests — retry after the advertised interval
Headers
Section titled “Headers ”Seconds until the request may be retried
Internal server error
Service unavailable — the database could not serve the request