Table of Contents

Interface IHonuaAdminRasterImportClient

Namespace
Honua.Sdk.Admin
Assembly
Honua.Sdk.Admin.dll

Admin raster import (raster write/output) operations over /api/v1/admin/import/raster. This is the write half of the raster geoprocessing round-trip; the read half lives on the read-only IHonuaRasterDataClient.

public interface IHonuaAdminRasterImportClient

Methods

GetSupportedRasterFormatsAsync(CancellationToken)

Gets the raster file formats supported by the server (GET /api/v1/admin/import/raster/formats).

Task<RasterFormatsResponse> GetSupportedRasterFormatsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<RasterFormatsResponse>

The supported raster formats and descriptions.

ImportRasterAsync(RasterImportRequest, CancellationToken)

Imports (uploads) a raster file into PostGIS via multipart upload (POST /api/v1/admin/import/raster).

Task<RasterImportResult> ImportRasterAsync(RasterImportRequest request, CancellationToken cancellationToken = default)

Parameters

request RasterImportRequest

The raster import request (content stream, target layer, sidecars, options).

cancellationToken CancellationToken

Cancellation token.

Returns

Task<RasterImportResult>

The parsed raster import result.