All URIs are relative to https://geoengine.io/api
| Method | HTTP request | Description |
|---|---|---|
| collection | GET /ogc/{dataConnectorId}/{layerId}/collections/{layerId} | OGC API Collection Metadata |
| collectionTileset | GET /ogc/{dataConnectorId}/{layerId}/collections/{layerId}/map/tiles/{tileMatrixSetId} | OGC API Collection Tileset Metadata |
| collectionTilesets | GET /ogc/{dataConnectorId}/{layerId}/collections/{layerId}/map/tiles | OGC API Collection Tilesets List |
| collections | GET /ogc/{dataConnectorId}/{layerId}/collections | OGC API Collections List |
| conformance | GET /ogc/{dataConnectorId}/{layerId}/conformance | OGC API Conformance Classes |
| landingPage | GET /ogc/{dataConnectorId}/{layerId}/ | OGC API Landing Page |
| tile | GET /ogc/{dataConnectorId}/{layerId}/collections/{layerId}/map/tiles/{tileMatrixSetId}/{tileMatrix}/{tileRow}/{tileCol} | OGC API Tile |
| tileMatrixSet | GET /ogc/{dataConnectorId}/{layerId}/tileMatrixSets/{tileMatrixSetId} | OGC API Tile Matrix Set Definition |
| tileMatrixSets | GET /ogc/{dataConnectorId}/{layerId}/tileMatrixSets | OGC API Tile Matrix Set List |
Collection collection(dataConnectorId, layerId)
OGC API Collection Metadata
Cf. OGC API - Common - Part 2: Collections.
import {
Configuration,
OGCAPIApi,
} from '@geoengine/api-client';
import type { CollectionRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new OGCAPIApi(config);
const body = {
// string | ID of the data connector
dataConnectorId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
// string | ID of the layer, which is used as collection ID
layerId: layerId_example,
} satisfies CollectionRequest;
try {
const data = await api.collection(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| dataConnectorId | string |
ID of the data connector | [Defaults to undefined] |
| layerId | string |
ID of the layer, which is used as collection ID | [Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TileSet collectionTileset(dataConnectorId, layerId, tileMatrixSetId)
OGC API Collection Tileset Metadata
Cf. OGC API - Tiles - Part 1: Core.
import {
Configuration,
OGCAPIApi,
} from '@geoengine/api-client';
import type { CollectionTilesetRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new OGCAPIApi(config);
const body = {
// string | ID of the data connector
dataConnectorId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
// string | ID of the layer, which is used as collection ID
layerId: layerId_example,
// TileMatrixSetId | Tile matrix set identifier
tileMatrixSetId: ...,
} satisfies CollectionTilesetRequest;
try {
const data = await api.collectionTileset(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 404 | Collection or tile matrix set not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TileSets collectionTilesets(dataConnectorId, layerId)
OGC API Collection Tilesets List
Cf. OGC API - Tiles - Part 1: Core.
import {
Configuration,
OGCAPIApi,
} from '@geoengine/api-client';
import type { CollectionTilesetsRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new OGCAPIApi(config);
const body = {
// string | ID of the data connector
dataConnectorId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
// string | ID of the layer, which is used as collection ID
layerId: layerId_example,
} satisfies CollectionTilesetsRequest;
try {
const data = await api.collectionTilesets(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| dataConnectorId | string |
ID of the data connector | [Defaults to undefined] |
| layerId | string |
ID of the layer, which is used as collection ID | [Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 404 | Collection not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Collections collections(dataConnectorId, layerId, datetime, bbox, limit, f)
OGC API Collections List
Cf. OGC API - Common - Part 2: Collections. Inside Geo Engine, every [`Layer`] gets its own OGC API endpoint. Inside this endpoint, this [`Layer`] is represented as a single `Collection`. Therefore, the list of collections for a given layer will always contain exactly one collection, and the `collectionId` will always be the same as the [`LayerId`].
import {
Configuration,
OGCAPIApi,
} from '@geoengine/api-client';
import type { CollectionsRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new OGCAPIApi(config);
const body = {
// string | ID of the data connector
dataConnectorId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
// string | ID of the layer, which is used as collection ID
layerId: layerId_example,
// string | Either a date-time or an interval, half-bounded or bounded. Date and time expressions adhere to RFC 3339. Half-bounded intervals use double dots (`..`). (optional)
datetime: 2018-02-12T23:20:50Z,
// string | Only features with geometries intersecting the bounding box are selected. Provide four or six comma-separated numbers in CRS84 order: minLon,minLat,maxLon,maxLat (optionally with vertical min/max). (optional)
bbox: -180,-90,180,90,
// number | Optional limit for the number of first-level collections returned (minimum: 1, maximum: 10000, default: 10). (optional)
limit: 10,
// CollectionsResponseFormat | Response format. If omitted, the `Accept` header is used. (optional)
f: json,
} satisfies CollectionsRequest;
try {
const data = await api.collections(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| dataConnectorId | string |
ID of the data connector | [Defaults to undefined] |
| layerId | string |
ID of the layer, which is used as collection ID | [Defaults to undefined] |
| datetime | string |
Either a date-time or an interval, half-bounded or bounded. Date and time expressions adhere to RFC 3339. Half-bounded intervals use double dots (`..`). | [Optional] [Defaults to undefined] |
| bbox | string |
Only features with geometries intersecting the bounding box are selected. Provide four or six comma-separated numbers in CRS84 order: minLon,minLat,maxLon,maxLat (optionally with vertical min/max). | [Optional] [Defaults to undefined] |
| limit | number |
Optional limit for the number of first-level collections returned (minimum: 1, maximum: 10000, default: 10). | [Optional] [Defaults to undefined] |
| f | CollectionsResponseFormat |
Response format. If omitted, the `Accept` header is used. | [Optional] [Defaults to undefined] [Enum: json] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Conformance conformance(dataConnectorId, layerId)
OGC API Conformance Classes
Cf. OGC API - Common - Part 1: Core.
import {
Configuration,
OGCAPIApi,
} from '@geoengine/api-client';
import type { ConformanceRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new OGCAPIApi(config);
const body = {
// string | ID of the data connector
dataConnectorId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
// string | ID of the layer, which is used as collection ID
layerId: layerId_example,
} satisfies ConformanceRequest;
try {
const data = await api.conformance(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| dataConnectorId | string |
ID of the data connector | [Defaults to undefined] |
| layerId | string |
ID of the layer, which is used as collection ID | [Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LandingPage landingPage(dataConnectorId, layerId)
OGC API Landing Page
Cf. OGC API - Common - Part 1: Core.
import {
Configuration,
OGCAPIApi,
} from '@geoengine/api-client';
import type { LandingPageRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new OGCAPIApi(config);
const body = {
// string | ID of the data connector
dataConnectorId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
// string | ID of the layer, which is used as collection ID
layerId: layerId_example,
} satisfies LandingPageRequest;
try {
const data = await api.landingPage(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| dataConnectorId | string |
ID of the data connector | [Defaults to undefined] |
| layerId | string |
ID of the layer, which is used as collection ID | [Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Blob tile(dataConnectorId, layerId, tileMatrixSetId, tileMatrix, tileRow, tileCol, datetime)
OGC API Tile
Cf. OGC API - Tiles - Part 1: Core. ## Sketch ```text pointOfOrigin (cornerOfOrigin=topLeft) tileMatrixMinX, tileMatrixMaxY tileMatrixMaxX | | v v +---------------------------+---------------------------+-----+---------------------------+ ---> tileCol axis | 0,0 | 1,0 | ... | matrixWidth-1,0 | | | | | | +---------------------------+---------------------------+-----+---------------------------+ | 0,1 | 1,1 | ... | matrixWidth-1,1 | | | | | | +---------------------------+---------------------------+-----+---------------------------+ | ... | ... | ... | ... | | | | | | +---------------------------+---------------------------+-----+---------------------------+ | 0, | 1, | ... | matrixWidth-1, | v | matrixHeight-1 | matrixHeight-1 | | matrixHeight-1 | --+ tileHeight tileMatrixMinY | | | | | (in pixels) +---------------------------+---------------------------+-----+---------------------------+ --+ | |<- tileWidth ->| v | (in pixels) | tileRow axis ```
import {
Configuration,
OGCAPIApi,
} from '@geoengine/api-client';
import type { TileRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new OGCAPIApi(config);
const body = {
// string | ID of the data connector
dataConnectorId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
// string | ID of the layer, which is used as collection ID
layerId: layerId_example,
// TileMatrixSetId | Tile matrix set identifier
tileMatrixSetId: ...,
// number | Tile matrix level
tileMatrix: 56,
// number | Tile row
tileRow: 789,
// number | Tile column
tileCol: 789,
// string | Either a date-time or an interval, half-bounded or bounded. Date and time expressions adhere to RFC 3339. Half-bounded intervals use double dots (`..`). (optional)
datetime: 2018-02-12T23:20:50Z,
} satisfies TileRequest;
try {
const data = await api.tile(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);Blob
- Content-Type: Not defined
- Accept:
image/png
| Status code | Description | Response headers |
|---|---|---|
| 200 | PNG Image | - |
| 400 | Invalid tile coordinates or datetime | - |
| 404 | Collection or tile matrix set not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TileMatrixSet tileMatrixSet(dataConnectorId, layerId, tileMatrixSetId)
OGC API Tile Matrix Set Definition
Cf. OGC API - Tiles - Part 1: Core. Cf. OGC Two Dimensional Tile Matrix Set and Tile Set Metadata.
import {
Configuration,
OGCAPIApi,
} from '@geoengine/api-client';
import type { TileMatrixSetRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new OGCAPIApi(config);
const body = {
// string | ID of the data connector
dataConnectorId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
// string | ID of the layer, which is used as collection ID
layerId: layerId_example,
// TileMatrixSetId | Tile matrix set identifier
tileMatrixSetId: ...,
} satisfies TileMatrixSetRequest;
try {
const data = await api.tileMatrixSet(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 404 | Tile matrix set not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TileMatrixSets tileMatrixSets(dataConnectorId, layerId)
OGC API Tile Matrix Set List
Cf. OGC API - Tiles - Part 1: Core. Cf. OGC Two Dimensional Tile Matrix Set and Tile Set Metadata.
import {
Configuration,
OGCAPIApi,
} from '@geoengine/api-client';
import type { TileMatrixSetsRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new OGCAPIApi(config);
const body = {
// string | ID of the data connector
dataConnectorId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
// string | ID of the layer, which is used as collection ID
layerId: layerId_example,
} satisfies TileMatrixSetsRequest;
try {
const data = await api.tileMatrixSets(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| dataConnectorId | string |
ID of the data connector | [Defaults to undefined] |
| layerId | string |
ID of the layer, which is used as collection ID | [Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]