Web API: Conflict ResolutionΒΆ

Some commands may trigger conflicts that must be resolved before continuing. If you are using a command that can trigger merge conflicts, you should check the response for response/Merge/conflicts. The only exception to this is ReportMergeScenario, in which each Feature element should be checked for conflicts. Once merge conflicts have been reported, the transaction that was used will be in a conflicted state until they are resolved. There are a couple options for resolving conflicts:

  1. MergeFeature and ResolveConflict: If you would like to resolve a conflict on an attribute-by-attribute basis, the best way to do so would be to use the MergeFeature endpoint. This allows for the creation of a new feature that combines the desired attributes of two sides of a conflicting feature. The result of that endpoint is a GeoGig object ID that can be passed to the ResolveConflict (-T) endpoint.
  2. Checkout and Add: If you would like to simply select the whole version of a feature on ours or theirs side of a conflict, you can use the Checkout (-T) endpoint while specifying the path of the feature. This will put the desired feature into the working tree where you can then use the Add (-T) endpoint while specifying the path of the feature to add it to the staging area and resolve the conflict.

Once all conflicts have been resolved (you can use the Status endpoint to verify), a new commit must be made to complete the original merge operation. This is done through the Commit (-T) endpoint where you can optionally specify a message that describes how you solved the conflict. After the commit is made, you may resume working on your data.

back to top

GeoGig available on LocationTech. Website maintained by Boundless