- URL:
- https://<root>/<serviceName/ParcelFabricServer/copyLinesToParcelType
- Methods:
POST
- Required Capability:
- ArcGIS Advanced Editing
- Version Introduced:
- 10.8
Description
The copy
operation copies the lines of the specified parcels to the specified parcel type and specified record. Use this operation to construct new parcels based on copied parent parcel lines. If the copied lines form closed loops, parcel seeds will automatically be created for the loops. Copied lines can be edited (insert, delete, and update) before building parcels.
Learn more about copying lines to a parcel type
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. A list of the parent parcels with the lines that will be copied. Syntax
|
(Required) | Introduced at 10.8. The unique identifier (GUID) of the record. Copied lines will be associated with the specified record. Syntax
|
(Required) | Introduced at 10.8. Specifies whether parent parcels will be retired as historic when lines are copied. Values: Syntax
|
(Required) | Introduced at 10.8. Specifies whether the attributes of the original lines will be preserved and transferred to the copied lines. Values: Syntax
|
(Required) | Introduced at 10.8. Specifies whether the attributes of the parent parcels will be preserved and transferred to generated seeds. Values: Syntax
|
(Required) | Introduced at 10.8. The parcel type to which to copy the lines. Syntax
|
(Optional) | Introduced at 10.8. The parcel subtype, if present, to which to copy the lines. Syntax
|
(Required) | Introduced at 10.8. The attributes to override on the copied parcel lines. Copied attributes can be overriden with provided values. Syntax
When not overriding attributes, use the following 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
|
| Specifies the output format of the response. The default response format is Values: |
Example usage
This example shows the steps for copying lines from a parcel in the tax parcel type to a specified record using the copy
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={0BD2FFC2-8B4D-4F3E-B497-0CD1E166D259}
-
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={0BD2FFC2-8B4D-4F3E-B497-0CD1E166D259}
-
Copy lines from the specified parcel to the specified parcel type and record. Do not change the parcel type and retire the original parcel as historic.
Request URL and parameters:
Use dark colors for code blocks Copy https://machine.domain.com/webadaptor/rest/services/CountyFabric/ParcelFabricServer/copyLinesToParcelType f=json gdbVersion=admin.Version1 sessionId={0BD2FFC2-8B4D-4F3E-B497-0CD1E166D259} parentParcels=[{"id":"{9887AFF5-1B86-42B4-8D2F-9CD45796362B}","layerId":"16"}] record={67D9858E-B4D8-4C12-84C9-685EBA04B741} markParentAsHistoric=true useSourceLineAttributes=true useSourcePolygonAttributes=true targetParcelType=16 attributeOverrides={"type":"PropertySet","propertySetItems":[]} 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": { // only if success is false
"extendedCode": <HRESULT>,
"message": <error message>,
"details": [<detail>]
},
"serviceEdits": { // only if transfer limit is not exceeded
"editedFeatures": {
"updates": {
"attributes": {},
"geometry": {}
},
{
"adds": {
"attributes": {},
"geometry": {}
},
{
"spatialReference": {<spatial reference>}
}
},
"id": <layerID>}
}
},
"success": <true | false>
}
The following response is returned when async
is true
:
{
"statusUrl": <url>
}