- URL:
- https://<root>/<serviceName>/ParcelFabricServer/merge
- Methods:
POST
- Required Capability:
- ArcGIS Advanced Editing
- Version Introduced:
- 10.8
Description
The merge
operation creates a new parcel by merging two or more existing parcels in the parcel fabric. Adjacent parcels can be merged to create a single parcel and disjoint parcels can be merged to create multipart parcels. The original parent parcels will be retired as historic.
Learn more about merging parcels
Request parameters
Parameter | Details |
---|---|
(Required) | Introduced at 10.8. The name of the geodatabase version (the default is the Syntax
|
(Required) | Introduced at 10.8. The token (GUID) used to lock the version. If the calling client is editing a named version, the Syntax
|
(Required) | Introduced at 10.8. The parent parcels that will be merged. Syntax
|
(Required) | Introduced at 10.8. The unique identifier (GUID) of the record that will be used for the merge. Merged parcels will be associated with the specified record. Syntax
|
(Required) | Introduced at 10.8. The parcel type (ID) in which the new, merged parcel will be created. Syntax
|
(Optional) | Introduced at 10.8. The parent parcel into which the other parcels will be merged. Merging parcels into existing parcels will not create historic parcels. Syntax
|
(Required) | Introduced at 10.8. The default area units that will be used when calculating the stated area of the merged parcel. The stated area of the merged parcel will be calculated if the stated areas exist on the parcels being merged. Syntax
|
(Required) | Introduced at 10.8. A list of attributes that will be used to override and replace attributes on the new merged parcel. Syntax
|
(Optional) | Introduced at 11.1. Specifies whether the request will be processed as an asynchronous job and a URL that points to a location displaying the status of the job will be returned. See the topic regarding asynchronous usage for more information. The default is Values: Syntax
|
| The response format. The default response format is Values: |
Example usage
This example shows the steps for merging parcels using the merge
operation.
-
Start a service session on the version.
Request URL and parameters:
Use dark colors for code blocks Copy https://machine.domain.com/webadaptor/rest/services/CountyFabric/VersionManagementServer/versions/E4DAED9D-C859-489B-9053-767A45F1D97C/startReading f=json sessionId={02DB3EE7-17D4-47B2-AFD1-F8EAFA22584E}
-
Start an edit session on the version.
Request URL and parameters:
Use dark colors for code blocks Copy https://machine.domain.com/webadaptor/rest/services/CountyFabric/VersionManagementServer/versions/E4DAED9D-C859-489B-9053-767A45F1D97C/startEditing f=json sessionId={02DB3EE7-17D4-47B2-AFD1-F8EAFA22584E}
-
Merge two parcels into a single parcel. Override the
Name
,Stated
, andArea Stated
attributes.Area Unit Request URL and parameters:
Use dark colors for code blocks Copy https://machine.domain.com/webadaptor/rest/services/CountyFabric/ParcelFabricServer/merge f=json gdbVersion=admin.Version1 sessionId={02DB3EE7-17D4-47B2-AFD1-F8EAFA22584E} parentParcels=[{"id":"{A6486E07-47A6-44B6-AEC1-84581489E17C}","layerId":"28"},{"id":"{A8888BF3-4EC0-440C-92AF-DED78210F94C}","layerId":"28"}] record={8CF6DC8D-41F4-4D75-93B5-87375BC8F9E3} targetParcelType=28 defaultAreaUnit=109405 attributeOverrides={"type":"PropertySet","propertySetItems":["name","0713210004","statedarea",15440.6,"statedareaunit",109406,"isseed",0]} async=false
-
If edits are complete, stop the edit session.
-
Stop and release the service session.
JSON Response syntax
The following response is returned when async
is false
:
{
"exceededTransferLimit: <true | false>,
"moment": <datetime>,
"error": {
"extendedCode": <HRESULT>,
"message": <error message>,
"details": [<detail>]
},
"serviceEdits": { // only if transfer limit is not exceeded
"editedFeatures": {
"updates": {
"attributes": {},
"geometry": {}
},
{
"adds": {
"attributes": {},
"geometry": {}
},
{
"deletes": {}
},
{
"spatialReference": {<spatial reference>}
},
"id": <layerID>
}
},
"success": <true | false>,
"error": { // only if success is false
"extendedCode": <HRESULT>,
"message": <error message>,
"details": [<detail>]
}
}
}
The following response is returned when async
is true
:
{
"statusUrl": <url>
}