Interface IHonuaOgcFeaturesEditClient
- Namespace
- Honua.Sdk.OgcFeatures
- Assembly
- Honua.Sdk.OgcFeatures.dll
Client interface for OGC API Features create, update, and delete operations.
public interface IHonuaOgcFeaturesEditClient
Methods
CreateItemAsync(string, OgcFeature, CancellationToken)
Creates a feature in a collection with the OGC API Features items endpoint.
Task<OgcFeature> CreateItemAsync(string collectionId, OgcFeature feature, CancellationToken cancellationToken = default)
Parameters
collectionIdstringThe collection identifier.
featureOgcFeatureGeoJSON feature to create.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<OgcFeature>
The created feature representation returned by the server.
DeleteItemAsync(string, string, CancellationToken)
Deletes a feature from a collection with the OGC API Features item endpoint.
Task DeleteItemAsync(string collectionId, string featureId, CancellationToken cancellationToken = default)
Parameters
collectionIdstringThe collection identifier.
featureIdstringThe feature identifier.
cancellationTokenCancellationTokenCancellation token.
Returns
UpdateItemAsync(string, string, OgcFeature, CancellationToken)
Updates or replaces a feature in a collection with the OGC API Features item endpoint.
Task<OgcFeature> UpdateItemAsync(string collectionId, string featureId, OgcFeature feature, CancellationToken cancellationToken = default)
Parameters
collectionIdstringThe collection identifier.
featureIdstringThe feature identifier.
featureOgcFeatureGeoJSON feature payload.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<OgcFeature>
The updated feature representation returned by the server.