Table of Contents

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

collectionId string

The collection identifier.

feature OgcFeature

GeoJSON feature to create.

cancellationToken CancellationToken

Cancellation 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

collectionId string

The collection identifier.

featureId string

The feature identifier.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

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

collectionId string

The collection identifier.

featureId string

The feature identifier.

feature OgcFeature

GeoJSON feature payload.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<OgcFeature>

The updated feature representation returned by the server.