Interface IHonuaOgcRecordsClient
Client interface for the Honua OGC API Records public catalog API.
public interface IHonuaOgcRecordsClient
Methods
GetCollectionAsync(string, CancellationToken)
Gets one record collection by identifier.
Task<OgcRecordsCollection> GetCollectionAsync(string collectionId, CancellationToken cancellationToken = default)
Parameters
collectionIdstringRecord collection identifier.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<OgcRecordsCollection>
The collection metadata.
GetConformanceAsync(CancellationToken)
Gets the conformance declaration listing supported Records standards.
Task<OgcRecordsConformance> GetConformanceAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<OgcRecordsConformance>
The conformance response.
GetLandingPageAsync(CancellationToken)
Gets the Records landing page with service metadata and navigation links.
Task<OgcRecordsLandingPage> GetLandingPageAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<OgcRecordsLandingPage>
The landing page response.
GetRecordAsync(string, string, CancellationToken)
Gets one metadata record by identifier.
Task<OgcRecord> GetRecordAsync(string collectionId, string recordId, CancellationToken cancellationToken = default)
Parameters
collectionIdstringRecord collection identifier.
recordIdstringRecord identifier.
cancellationTokenCancellationTokenCancellation token.
Returns
GetRecordJsonAsync(string, string, CancellationToken)
Gets one metadata record as raw JSON for contract fields not yet promoted to typed SDK properties.
Task<JsonDocument> GetRecordJsonAsync(string collectionId, string recordId, CancellationToken cancellationToken = default)
Parameters
collectionIdstringRecord collection identifier.
recordIdstringRecord identifier.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<JsonDocument>
A caller-owned JSON document.
GetRecordsAsync(string, OgcRecordsQuery?, CancellationToken)
Gets one page of metadata records from a collection.
Task<OgcRecordCollection> GetRecordsAsync(string collectionId, OgcRecordsQuery? query = null, CancellationToken cancellationToken = default)
Parameters
collectionIdstringRecord collection identifier.
queryOgcRecordsQueryOptional query parameters for paging and filtering.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<OgcRecordCollection>
A GeoJSON-compatible record collection.
GetRecordsJsonAsync(string, OgcRecordsQuery?, CancellationToken)
Gets one page of metadata records as raw JSON for contract fields not yet promoted to typed SDK properties.
Task<JsonDocument> GetRecordsJsonAsync(string collectionId, OgcRecordsQuery? query = null, CancellationToken cancellationToken = default)
Parameters
collectionIdstringRecord collection identifier.
queryOgcRecordsQueryOptional query parameters for paging and filtering.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<JsonDocument>
A caller-owned JSON document.
GetRecordsPagesAsync(string, OgcRecordsQuery?, CancellationToken)
Gets records with automatic next-link pagination.
IAsyncEnumerable<OgcRecordCollection> GetRecordsPagesAsync(string collectionId, OgcRecordsQuery? query = null, CancellationToken cancellationToken = default)
Parameters
collectionIdstringRecord collection identifier.
queryOgcRecordsQueryOptional query parameters for filtering.
cancellationTokenCancellationTokenCancellation token.
Returns
- IAsyncEnumerable<OgcRecordCollection>
Record collection pages.
GetRecordsRawAsync(string, OgcRecordsQuery?, CancellationToken)
Gets the raw HTTP response for a records query. The caller is responsible for disposing the response.
Task<HttpResponseMessage> GetRecordsRawAsync(string collectionId, OgcRecordsQuery? query = null, CancellationToken cancellationToken = default)
Parameters
collectionIdstringRecord collection identifier.
queryOgcRecordsQueryOptional query parameters for paging and filtering.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<HttpResponseMessage>
The raw HTTP response.
ListCollectionsAsync(CancellationToken)
Lists available record collections.
Task<IReadOnlyList<OgcRecordsCollection>> ListCollectionsAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IReadOnlyList<OgcRecordsCollection>>
Record collections exposed by the server.
SearchAsync(string, OgcRecordsQuery?, CancellationToken)
Searches metadata records from a collection. This is an alias for GetRecordsAsync(string, OgcRecordsQuery?, CancellationToken) using Records search terminology.
Task<OgcRecordCollection> SearchAsync(string collectionId, OgcRecordsQuery? query = null, CancellationToken cancellationToken = default)
Parameters
collectionIdstringRecord collection identifier.
queryOgcRecordsQueryOptional query parameters for paging and filtering.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<OgcRecordCollection>
A GeoJSON-compatible record collection.