- URL:https://<parcelfabricservice-url>/reassignFeaturesToRecord
- Required Capability:ArcGIS Parcel Fabric
- Version Introduced:11.0
Description
The reassignFeaturesToRecord operation reassigns all parcel features in the specified source record to the specified target record. The source record becomes empty and is not associated with any parcel features.
The record polygon of the target record is updated to match the cumulative geometry of all the parcels associated with it.
Request parameters
Parameter | Details |
---|---|
gdbVersion | Specifies the name of the geodatabase version (the default is the DEFAULT version). Syntax
|
sessionId | The token (GUID) used to lock the version. If the calling client is editing a named version, the session ID is required. If the specified version is currently locked by any other session, the request will fail if the session ID is not provided or does not match the session ID that holds the exclusive lock. If the client is editing the default version, the session ID is not required. Syntax
|
sourceRecord (Required) | The record containing the parcel features to be reassigned. Syntax
|
targetRecord (Required) | The target record to which the parcel features will be reassigned. Syntax
|
deleteSourceRecord | Indicates whether the original source record will be deleted. Syntax
Values: true | false |
f | The response format. The default response format is html. Values: html | json |
Example usage
This example shows the steps for reassigning parcel features to a different record using the reassignFeaturesToRecord operation.
Note:
The sessionId parameter value must be the same for starting the edit session, performing the edit operation, and stopping the edit session.- Start a service session on the version.
Request URL and parameters.
https://machine.domain.com/webadaptor/rest/services/CountyFabric/VersionManagementServer/versions/E4DAED9D-C859-489B-9053-767A45F1D97C/startReading f=json sessionId={d5b2acda-fdfc-48bd-996c-16c95756f7a2}
- Start an edit session on the version.
Request URL and parameters.
https://machine.domain.com/webadaptor/rest/services/CountyFabric/VersionManagementServer/versions/E4DAED9D-C859-489B-9053-767A45F1D97C/startEditing f=json sessionId={d5b2acda-fdfc-48bd-996c-16c95756f7a2}
- Reassign parcel features from one record (source record) to another record (target record). Delete the original source record.
Request URL and parameters.
https://machine.domain.com/webadaptor/rest/services/CountyFabric/ParcelFabricServer/reassignFeaturesToRecord f=json gdbVersion=admin.Version1 sessionId={d5b2acda-fdfc-48bd-996c-16c95756f7a2} sourceRecord={3FD726F6-69C1-4CDF-9EC5-38E3384CB38C} targetRecord={18F944EA-50E9-4792-9814-FD419644934E} deleteSourceRecord=true
- When edits are complete, stop the edit session.
- Stop and release the service session.
JSON Response syntax
{
"moment": <datetime>,
"exceededTransferLimit: <true | false>,
"serviceEdits": [{ // only if transfer limit is not exceeded
"editedFeatures": {
"spatialReference": {}
"updates": [
[{ "attributes": {}
"geometry": {}
}]]
...
"deletes": [
[{ "attributes": {}
"geometry": {}
}]]
"success": <true | false>,
"error": { // only if success is false
"extendedCode": <HRESULT>,
"message": <error message>,
"details": [<detail>]
}
JSON Response example
{
"moment": 1633648726800,
"exceededTransferLimit": false,
"serviceEdits": [
{
"id": 17,
"editedFeatures": {
"spatialReference": {
"wkid": 103007,
"latestWkid": 6424,
"xyTolerance": 0.0032808333333333331,
"zTolerance": 0.001,
"mTolerance": 0.001,
"falseX": -117608900,
"falseY": -91881400,
"xyUnits": 3048.00609601219276,
"falseZ": -100000,
"zUnits": 10000,
"falseM": -100000,
"mUnits": 10000
},
"updates": [
[
{
"attributes": {
"OBJECTID": 5,
"GlobalID": "{10740196-42B1-4FA3-8817-5A3C71842A96}",
"Direction": 359.77388889,
"Distance": 77.68984462,
"Radius": null,
"ArcLength": null,
"Radius2": null,
"CreatedByRecord": "{3FD726F6-69C1-4CDF-9EC5-38E3384CB38C}",
"RetiredByRecord": null,
"COGOType": null,
"IsCOGOGround": null,
"Rotation": null,
"Scale": null,
"DirectionAccuracy": 30.0,
"DistanceAccuracy": 0.492125,
"ParentLineID": null,
"created_user": "admin",
"created_date": 1633639756000,
"last_edited_user": "admin",
"last_edited_date": 1633639756000,
"VALIDATIONSTATUS": 2,
"Shape__Length": 77.6897534076093308
},
"geometry": {
"hasZ": true,
"paths": [
[
[
6816365.4399818927,
1843185.05307964981,
0
],
[
6816365.13355205953,
1843262.74222873151,
0
]
]
]
}
},
{
"attributes": {
"OBJECTID": 5,
"GlobalID": "{10740196-42B1-4FA3-8817-5A3C71842A96}",
"Direction": 359.77388889,
"Distance": 77.68984462,
"Radius": null,
"ArcLength": null,
"Radius2": null,
"CreatedByRecord": "{18F944EA-50E9-4792-9814-FD419644934E}",
"RetiredByRecord": null,
"COGOType": null,
"IsCOGOGround": null,
"Rotation": null,
"Scale": null,
"DirectionAccuracy": 30.0,
"DistanceAccuracy": 0.492125,
"ParentLineID": null,
"created_user": "admin",
"created_date": 1633639756000,
"last_edited_user": "admin",
"last_edited_date": 1633648728000,
"VALIDATIONSTATUS": 2,
"Shape__Length": 77.6897534076093308
},
"geometry": {
"hasZ": true,
"paths": [
[
[
6816365.4399818927,
1843185.05307964981,
0
],
[
6816365.13355205953,
1843262.74222873151,
0
]
]
]
}
}
],
...
"success": true
}