Table of Contents

Interface IHonuaFeatureServerEditClient

Namespace
Honua.Sdk.GeoServices.FeatureServer
Assembly
Honua.Sdk.GeoServices.dll

Client interface for the Honua FeatureServer (GeoServices) feature edit API.

public interface IHonuaFeatureServerEditClient

Methods

AddFeaturesAsync(string, int, IReadOnlyList<FeatureServerFeature>, bool, CancellationToken)

Adds features using the FeatureServer applyEdits endpoint.

Task<FeatureServerEditResponse> AddFeaturesAsync(string serviceId, int layerId, IReadOnlyList<FeatureServerFeature> features, bool rollbackOnFailure = true, CancellationToken cancellationToken = default)

Parameters

serviceId string

The service identifier.

layerId int

The layer ID within the service.

features IReadOnlyList<FeatureServerFeature>

Features to add.

rollbackOnFailure bool

Whether the server should roll back all edits if any add fails.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<FeatureServerEditResponse>

Edit response with add results.

ApplyEditsAsync(string, int, FeatureServerEditRequest, CancellationToken)

Applies add, update, and delete feature edits using the FeatureServer applyEdits endpoint.

Task<FeatureServerEditResponse> ApplyEditsAsync(string serviceId, int layerId, FeatureServerEditRequest request, CancellationToken cancellationToken = default)

Parameters

serviceId string

The service identifier.

layerId int

The layer ID within the service.

request FeatureServerEditRequest

Edit request containing adds, updates, deletes, and rollback behavior.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<FeatureServerEditResponse>

Edit response with per-operation results.

DeleteFeaturesAsync(string, int, IReadOnlyList<long>, bool, CancellationToken)

Deletes features using the FeatureServer applyEdits endpoint.

Task<FeatureServerEditResponse> DeleteFeaturesAsync(string serviceId, int layerId, IReadOnlyList<long> objectIds, bool rollbackOnFailure = true, CancellationToken cancellationToken = default)

Parameters

serviceId string

The service identifier.

layerId int

The layer ID within the service.

objectIds IReadOnlyList<long>

Object IDs to delete.

rollbackOnFailure bool

Whether the server should roll back all edits if any delete fails.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<FeatureServerEditResponse>

Edit response with delete results.

GetEditCapabilitiesAsync(string, int, CancellationToken)

Gets FeatureServer edit capabilities for a layer.

Task<FeatureEditCapabilities> GetEditCapabilitiesAsync(string serviceId, int layerId, CancellationToken cancellationToken = default)

Parameters

serviceId string

The service identifier.

layerId int

The layer ID within the service.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<FeatureEditCapabilities>

Provider-neutral edit capabilities inferred from layer metadata.

UpdateFeaturesAsync(string, int, IReadOnlyList<FeatureServerFeature>, bool, CancellationToken)

Updates features using the FeatureServer applyEdits endpoint.

Task<FeatureServerEditResponse> UpdateFeaturesAsync(string serviceId, int layerId, IReadOnlyList<FeatureServerFeature> features, bool rollbackOnFailure = true, CancellationToken cancellationToken = default)

Parameters

serviceId string

The service identifier.

layerId int

The layer ID within the service.

features IReadOnlyList<FeatureServerFeature>

Features to update. Each feature must include the layer object ID field.

rollbackOnFailure bool

Whether the server should roll back all edits if any update fails.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<FeatureServerEditResponse>

Edit response with update results.