Skip to content

Latest commit

Β 

History

History
1031 lines (720 loc) Β· 25.8 KB

File metadata and controls

1031 lines (720 loc) Β· 25.8 KB

DatasetsApi

All URIs are relative to https://geoengine.io/api

Method HTTP request Description
addDatasetTilesHandler POST /dataset/{dataset}/tiles Add a tile to a gdal dataset.
autoCreateDatasetHandler POST /dataset/auto Creates a new dataset using previously uploaded files. The format of the files will be automatically detected when possible.
createDatasetHandler POST /dataset Creates a new dataset referencing files. Users can reference previously uploaded files. Admins can reference files from a volume.
deleteDatasetHandler DELETE /dataset/{dataset} Delete a dataset
getDatasetHandler GET /dataset/{dataset} Retrieves details about a dataset using the internal name.
getLoadingInfoHandler GET /dataset/{dataset}/loadingInfo Retrieves the loading information of a dataset
listDatasetsHandler GET /datasets Lists available datasets.
listVolumeFileLayersHandler GET /dataset/volumes/{volume_name}/files/{file_name}/layers List the layers of a file in a volume.
listVolumesHandler GET /dataset/volumes Lists available volumes.
suggestMetaDataHandler POST /dataset/suggest Inspects an upload and suggests metadata that can be used when creating a new dataset based on it. Tries to automatically detect the main file and layer name if not specified.
updateDatasetHandler POST /dataset/{dataset} Update details about a dataset using the internal name.
updateDatasetProvenanceHandler PUT /dataset/{dataset}/provenance
updateDatasetSymbologyHandler PUT /dataset/{dataset}/symbology Updates the dataset's symbology
updateLoadingInfoHandler PUT /dataset/{dataset}/loadingInfo Updates the dataset's loading info

addDatasetTilesHandler

addDatasetTilesHandler(dataset, autoCreateDataset)

Add a tile to a gdal dataset.

Example

import {
  Configuration,
  DatasetsApi,
} from '@geoengine/api-client';
import type { AddDatasetTilesHandlerRequest } 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 DatasetsApi(config);

  const body = {
    // string | Dataset Name
    dataset: dataset_example,
    // AutoCreateDataset
    autoCreateDataset: ...,
  } satisfies AddDatasetTilesHandlerRequest;

  try {
    const data = await api.addDatasetTilesHandler(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
dataset string Dataset Name [Defaults to undefined]
autoCreateDataset AutoCreateDataset

Return type

void (Empty response body)

Authorization

session_token

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

autoCreateDatasetHandler

DatasetNameResponse autoCreateDatasetHandler(autoCreateDataset)

Creates a new dataset using previously uploaded files. The format of the files will be automatically detected when possible.

Example

import {
  Configuration,
  DatasetsApi,
} from '@geoengine/api-client';
import type { AutoCreateDatasetHandlerRequest } 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 DatasetsApi(config);

  const body = {
    // AutoCreateDataset
    autoCreateDataset: ...,
  } satisfies AutoCreateDatasetHandlerRequest;

  try {
    const data = await api.autoCreateDatasetHandler(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
autoCreateDataset AutoCreateDataset

Return type

DatasetNameResponse

Authorization

session_token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 -
400 Bad request -
401 Authorization failed -
413 Payload too large -
415 Media type of application/json is expected -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

createDatasetHandler

DatasetNameResponse createDatasetHandler(createDataset)

Creates a new dataset referencing files. Users can reference previously uploaded files. Admins can reference files from a volume.

Example

import {
  Configuration,
  DatasetsApi,
} from '@geoengine/api-client';
import type { CreateDatasetHandlerRequest } 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 DatasetsApi(config);

  const body = {
    // CreateDataset
    createDataset: ...,
  } satisfies CreateDatasetHandlerRequest;

  try {
    const data = await api.createDatasetHandler(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
createDataset CreateDataset

Return type

DatasetNameResponse

Authorization

session_token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

deleteDatasetHandler

deleteDatasetHandler(dataset)

Delete a dataset

Example

import {
  Configuration,
  DatasetsApi,
} from '@geoengine/api-client';
import type { DeleteDatasetHandlerRequest } 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 DatasetsApi(config);

  const body = {
    // string | Dataset id
    dataset: dataset_example,
  } satisfies DeleteDatasetHandlerRequest;

  try {
    const data = await api.deleteDatasetHandler(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
dataset string Dataset id [Defaults to undefined]

Return type

void (Empty response body)

Authorization

session_token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 Bad request -
401 Authorization failed -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getDatasetHandler

Dataset getDatasetHandler(dataset)

Retrieves details about a dataset using the internal name.

Example

import {
  Configuration,
  DatasetsApi,
} from '@geoengine/api-client';
import type { GetDatasetHandlerRequest } 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 DatasetsApi(config);

  const body = {
    // string | Dataset Name
    dataset: dataset_example,
  } satisfies GetDatasetHandlerRequest;

  try {
    const data = await api.getDatasetHandler(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
dataset string Dataset Name [Defaults to undefined]

Return type

Dataset

Authorization

session_token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 Bad request -
401 Authorization failed -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getLoadingInfoHandler

MetaDataDefinition getLoadingInfoHandler(dataset)

Retrieves the loading information of a dataset

Example

import {
  Configuration,
  DatasetsApi,
} from '@geoengine/api-client';
import type { GetLoadingInfoHandlerRequest } 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 DatasetsApi(config);

  const body = {
    // string | Dataset Name
    dataset: dataset_example,
  } satisfies GetLoadingInfoHandlerRequest;

  try {
    const data = await api.getLoadingInfoHandler(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
dataset string Dataset Name [Defaults to undefined]

Return type

MetaDataDefinition

Authorization

session_token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

listDatasetsHandler

Array<DatasetListing> listDatasetsHandler(order, offset, limit, filter, tags)

Lists available datasets.

Example

import {
  Configuration,
  DatasetsApi,
} from '@geoengine/api-client';
import type { ListDatasetsHandlerRequest } 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 DatasetsApi(config);

  const body = {
    // OrderBy
    order: NameAsc,
    // number
    offset: 0,
    // number
    limit: 2,
    // string (optional)
    filter: Germany,
    // Array<string> (optional)
    tags: ['tag1', 'tag2'],
  } satisfies ListDatasetsHandlerRequest;

  try {
    const data = await api.listDatasetsHandler(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
order OrderBy [Defaults to undefined] [Enum: NameAsc, NameDesc]
offset number [Defaults to undefined]
limit number [Defaults to undefined]
filter string [Optional] [Defaults to undefined]
tags Array<string> [Optional]

Return type

Array<DatasetListing>

Authorization

session_token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 Bad request -
401 Authorization failed -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

listVolumeFileLayersHandler

VolumeFileLayersResponse listVolumeFileLayersHandler(volumeName, fileName)

List the layers of a file in a volume.

Example

import {
  Configuration,
  DatasetsApi,
} from '@geoengine/api-client';
import type { ListVolumeFileLayersHandlerRequest } 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 DatasetsApi(config);

  const body = {
    // string | Volume name
    volumeName: volumeName_example,
    // string | File name
    fileName: fileName_example,
  } satisfies ListVolumeFileLayersHandlerRequest;

  try {
    const data = await api.listVolumeFileLayersHandler(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
volumeName string Volume name [Defaults to undefined]
fileName string File name [Defaults to undefined]

Return type

VolumeFileLayersResponse

Authorization

session_token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

listVolumesHandler

Array<Volume> listVolumesHandler()

Lists available volumes.

Example

import {
  Configuration,
  DatasetsApi,
} from '@geoengine/api-client';
import type { ListVolumesHandlerRequest } 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 DatasetsApi(config);

  try {
    const data = await api.listVolumesHandler();
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

This endpoint does not need any parameter.

Return type

Array<Volume>

Authorization

session_token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
401 Authorization failed -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

suggestMetaDataHandler

MetaDataSuggestion suggestMetaDataHandler(suggestMetaData)

Inspects an upload and suggests metadata that can be used when creating a new dataset based on it. Tries to automatically detect the main file and layer name if not specified.

Example

import {
  Configuration,
  DatasetsApi,
} from '@geoengine/api-client';
import type { SuggestMetaDataHandlerRequest } 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 DatasetsApi(config);

  const body = {
    // SuggestMetaData
    suggestMetaData: ...,
  } satisfies SuggestMetaDataHandlerRequest;

  try {
    const data = await api.suggestMetaDataHandler(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
suggestMetaData SuggestMetaData

Return type

MetaDataSuggestion

Authorization

session_token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 Bad request -
401 Authorization failed -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateDatasetHandler

updateDatasetHandler(dataset, updateDataset)

Update details about a dataset using the internal name.

Example

import {
  Configuration,
  DatasetsApi,
} from '@geoengine/api-client';
import type { UpdateDatasetHandlerRequest } 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 DatasetsApi(config);

  const body = {
    // string | Dataset Name
    dataset: dataset_example,
    // UpdateDataset
    updateDataset: ...,
  } satisfies UpdateDatasetHandlerRequest;

  try {
    const data = await api.updateDatasetHandler(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
dataset string Dataset Name [Defaults to undefined]
updateDataset UpdateDataset

Return type

void (Empty response body)

Authorization

session_token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 Bad request -
401 Authorization failed -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateDatasetProvenanceHandler

updateDatasetProvenanceHandler(dataset, provenances)

Example

import {
  Configuration,
  DatasetsApi,
} from '@geoengine/api-client';
import type { UpdateDatasetProvenanceHandlerRequest } 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 DatasetsApi(config);

  const body = {
    // string | Dataset Name
    dataset: dataset_example,
    // Provenances
    provenances: ...,
  } satisfies UpdateDatasetProvenanceHandlerRequest;

  try {
    const data = await api.updateDatasetProvenanceHandler(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
dataset string Dataset Name [Defaults to undefined]
provenances Provenances

Return type

void (Empty response body)

Authorization

session_token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 Bad request -
401 Authorization failed -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateDatasetSymbologyHandler

updateDatasetSymbologyHandler(dataset, symbology)

Updates the dataset&#39;s symbology

Example

import {
  Configuration,
  DatasetsApi,
} from '@geoengine/api-client';
import type { UpdateDatasetSymbologyHandlerRequest } 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 DatasetsApi(config);

  const body = {
    // string | Dataset Name
    dataset: dataset_example,
    // Symbology
    symbology: ...,
  } satisfies UpdateDatasetSymbologyHandlerRequest;

  try {
    const data = await api.updateDatasetSymbologyHandler(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
dataset string Dataset Name [Defaults to undefined]
symbology Symbology

Return type

void (Empty response body)

Authorization

session_token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 Bad request -
401 Authorization failed -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateLoadingInfoHandler

updateLoadingInfoHandler(dataset, metaDataDefinition)

Updates the dataset&#39;s loading info

Example

import {
  Configuration,
  DatasetsApi,
} from '@geoengine/api-client';
import type { UpdateLoadingInfoHandlerRequest } 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 DatasetsApi(config);

  const body = {
    // string | Dataset Name
    dataset: dataset_example,
    // MetaDataDefinition
    metaDataDefinition: ...,
  } satisfies UpdateLoadingInfoHandlerRequest;

  try {
    const data = await api.updateLoadingInfoHandler(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
dataset string Dataset Name [Defaults to undefined]
metaDataDefinition MetaDataDefinition

Return type

void (Empty response body)

Authorization

session_token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 Bad request -
401 Authorization failed -

[Back to top] [Back to API list] [Back to Model list] [Back to README]