@eodash/eodash / @eodash/stac / createEodashCollection
Function: createEodashCollection()
function createEodashCollection(url, options?): Promise<Reader>;Creates a collection reader for querying dates and generating map layers. Selects an API, GeoParquet, or static collection reader based on the options and collection metadata.
Parameters
url
string
Collection URL or API search endpoint
options?
api?
boolean
Whether the collection uses a STAC API endpoint
client?
AxiosInstance
Custom HTTP client instance
color?
string
Color assigned to layers generated from this collection
maxItems?
number
Maximum items to retrieve per search query
rasterEndpoint?
string
Base URL for raster tile rendering
renders?
Record<string, Record<string, Render>>
Render configurations mapped by collection ID
stac?
The collection document, for a caller that has already read it
tileMatrixSets?
Record<string, any> | null
TileMatrixSet configurations keyed by projection
upscalingEndpoints?
( | string | { scaleFactor?: number; titilerVersion?: 1 | 2; url: string; })[]
Tile endpoints for high-resolution rendering
viewProjection?
string
Map view projection code used to namespace layer identifiers
Returns
Promise<Reader>