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
collectionIdstringThe collection identifier.
cancellationTokenCancellationTokenCancellation 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
cancellationTokenCancellationTokenCancellation 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
collectionIdstringThe collection identifier.
featureIdstringThe feature identifier.
cancellationTokenCancellationTokenCancellation 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
collectionIdstringThe collection identifier.
queryOgcItemsParamsOptional query parameters for filtering, paging, and projection.
cancellationTokenCancellationTokenCancellation 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
collectionIdstringThe collection identifier.
queryOgcItemsParamsOptional query parameters for filtering and projection.
cancellationTokenCancellationTokenCancellation 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
collectionIdstringqueryOgcItemsParamscancellationTokenCancellationToken
Returns
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
collectionIdstringformatOgcFeaturesFormatcancellationTokenCancellationToken
Returns
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
collectionIdstringqueryOgcItemsParamscancellationTokenCancellationToken
Returns
GetLandingPageAsync(CancellationToken)
Gets the OGC API landing page with service metadata and navigation links.
Task<OgcLandingPage> GetLandingPageAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation 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
collectionIdstringThe collection identifier.
cancellationTokenCancellationTokenCancellation 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
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IReadOnlyList<OgcCollection>>
A list of collections with metadata.