Table of Contents

Interface IHonuaOgcFeaturesClient

Namespace
Honua.Sdk.OgcFeatures
Assembly
Honua.Sdk.OgcFeatures.dll

Client interface for the Honua OGC API Features read/query API.

public interface IHonuaOgcFeaturesClient
Extension Methods

Methods

GetCollectionAsync(string, CancellationToken)

Gets metadata for a specific collection.

Task<OgcCollection> GetCollectionAsync(string collectionId, CancellationToken cancellationToken = default)

Parameters

collectionId string

The collection identifier.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<OgcCollection>

Collection metadata including extent, CRS, and links.

GetConformanceAsync(CancellationToken)

Gets the conformance declaration listing supported OGC standards.

Task<OgcConformance> GetConformanceAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<OgcConformance>

The conformance response with URIs of supported conformance classes.

GetItemAsync(string, string, CancellationToken)

Gets a single feature by ID from a collection.

Task<OgcFeature> GetItemAsync(string collectionId, string featureId, CancellationToken cancellationToken = default)

Parameters

collectionId string

The collection identifier.

featureId string

The feature identifier.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<OgcFeature>

The requested GeoJSON feature.

GetItemsAsync(string, OgcItemsParams?, CancellationToken)

Gets a single page of features from a collection.

Task<OgcFeatureCollection> GetItemsAsync(string collectionId, OgcItemsParams? query = null, CancellationToken cancellationToken = default)

Parameters

collectionId string

The collection identifier.

query OgcItemsParams

Optional query parameters for filtering, paging, and projection.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<OgcFeatureCollection>

A GeoJSON FeatureCollection with features and paging links.

GetItemsPagesAsync(string, OgcItemsParams?, CancellationToken)

Gets features from a collection with automatic paging via IAsyncEnumerable<T>. Follows HATEOAS "next" links for subsequent pages.

IAsyncEnumerable<OgcFeatureCollection> GetItemsPagesAsync(string collectionId, OgcItemsParams? query = null, CancellationToken cancellationToken = default)

Parameters

collectionId string

The collection identifier.

query OgcItemsParams

Optional query parameters for filtering and projection.

cancellationToken CancellationToken

Cancellation token.

Returns

IAsyncEnumerable<OgcFeatureCollection>

An async enumerable of feature collection pages.

GetItemsRawAsync(string, OgcItemsParams?, CancellationToken)

Gets features in a raw HTTP response for non-JSON formats (GML, CSV, HTML, Parquet, Arrow); the caller owns response disposal.

Task<HttpResponseMessage> GetItemsRawAsync(string collectionId, OgcItemsParams? query = null, CancellationToken cancellationToken = default)

Parameters

collectionId string
query OgcItemsParams
cancellationToken CancellationToken

Returns

Task<HttpResponseMessage>

GetItemsStreamAsync(string, OgcFeaturesFormat, CancellationToken)

Gets features as a status- and content-type-validated raw stream for the requested format (such as Parquet or Arrow); decoding is left to the caller and the returned stream owns response disposal.

Task<Stream> GetItemsStreamAsync(string collectionId, OgcFeaturesFormat format, CancellationToken cancellationToken = default)

Parameters

collectionId string
format OgcFeaturesFormat
cancellationToken CancellationToken

Returns

Task<Stream>

GetItemsStreamAsync(string, OgcItemsParams?, CancellationToken)

Gets features as a status- and content-type-validated raw stream using query parameters (including columnar formats such as Parquet or Arrow); decoding is left to the caller and the returned stream owns response disposal.

Task<Stream> GetItemsStreamAsync(string collectionId, OgcItemsParams? query = null, CancellationToken cancellationToken = default)

Parameters

collectionId string
query OgcItemsParams
cancellationToken CancellationToken

Returns

Task<Stream>

GetLandingPageAsync(CancellationToken)

Gets the OGC API landing page with service metadata and navigation links.

Task<OgcLandingPage> GetLandingPageAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<OgcLandingPage>

The landing page response.

GetQueryablesAsync(string, CancellationToken)

Gets the queryable properties for a collection (JSON Schema).

Task<OgcQueryables> GetQueryablesAsync(string collectionId, CancellationToken cancellationToken = default)

Parameters

collectionId string

The collection identifier.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<OgcQueryables>

Queryable properties as a JSON Schema object.

ListCollectionsAsync(CancellationToken)

Lists all available feature collections.

Task<IReadOnlyList<OgcCollection>> ListCollectionsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<IReadOnlyList<OgcCollection>>

A list of collections with metadata.