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
serviceIdstringThe service identifier.
layerIdintThe layer ID within the service.
featuresIReadOnlyList<FeatureServerFeature>Features to add.
rollbackOnFailureboolWhether the server should roll back all edits if any add fails.
cancellationTokenCancellationTokenCancellation 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
serviceIdstringThe service identifier.
layerIdintThe layer ID within the service.
requestFeatureServerEditRequestEdit request containing adds, updates, deletes, and rollback behavior.
cancellationTokenCancellationTokenCancellation 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
serviceIdstringThe service identifier.
layerIdintThe layer ID within the service.
objectIdsIReadOnlyList<long>Object IDs to delete.
rollbackOnFailureboolWhether the server should roll back all edits if any delete fails.
cancellationTokenCancellationTokenCancellation 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
serviceIdstringThe service identifier.
layerIdintThe layer ID within the service.
cancellationTokenCancellationTokenCancellation 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
serviceIdstringThe service identifier.
layerIdintThe layer ID within the service.
featuresIReadOnlyList<FeatureServerFeature>Features to update. Each feature must include the layer object ID field.
rollbackOnFailureboolWhether the server should roll back all edits if any update fails.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<FeatureServerEditResponse>
Edit response with update results.