Differences
- URL: https://<version-url>/differences
- Version Introduced:10.6
Description
The Differences operation allows you to view differences between the current version and the default version. The two versions can be compared to check for the following conditions.
• Inserts - features that are present in the current version but not the default version
• Updates - features that have different attributes or geometry in the current version than the default version
• Deletions - features that are present in the default version but not in the current version
Both differences and conflicts will be returned. It is the clients responsibility to determine which are differences, and which are conflicts.
Request Parameters
Parameter | Details |
---|---|
f | Description: Optional parameter to specify the output format of the response. The default response format is html. Values: html | json |
sessionId | Description: The client generated session id (guid); a required parameter. Syntax : sessionId = {3F2504E0-4F89-41D3-9A0C-0305E82C3301} |
moment | Description: Moment used to compare current version with default. |
resultType | Description: Optional parameter representing the type of results to return. The default result type is objectIds. Values : "objectIds" | "features" |
JSON Response Syntax
{
"differences" : [
{
"layerId" : long,
"inserts" : [ <objectId> ],
"updates" : [ <objectId> ],
"deletes" : [ <objectId> ]
}
],
"features" : [
{
"layerId" : long,
"inserts" : [
{
"attributes" : {
"OBJECTID" : 581,
"SUBTYPE" : 3,
. . .
"SHAPE.STLength()" : 132.5
},
"geometry" : {
"hasZ" : true,
"hasM" : true,
"paths" : [
. . .
]
}
}
],
"updates" : [
],
"deletes" : [
]
}
],
"success" : <true | false>,
"error" : { // only if success is false
"extendedCode" : <HRESULT>,
"message" : "<error message>",
"details" : [ <detail> ]
}
}