- URL:
- https://<root>/<serviceName>/ParcelFabricServer/changeParcelType
- Methods:
POST
- Required Capability:
- ArcGIS Advanced Editing
- Version Introduced:
- 10.8
Description
The change
operation changes the parcel type and subtype of the specified parcels. The parcel geometries are removed from the original parcel type and subtype and transferred to the specified parcel type and subtype.
When parcels are changed to different parcel types, the associated record information is not updated and history is not tracked.
Learn more about changing 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. The parcels that will be changed. Syntax
|
(Required) | Introduced at 10.8. The target parcel type. Syntax
|
(Required) | Introduced at 10.8. The target parcel subtype. Syntax
|
(Optional) | Introduced at 11.1. Specifies whether the request will be processed as an asynchronous job and a URL will be returned that points to a location displaying the status of the job. 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 changing the parcel type of the specified parcel using the change
operation.
-
Start a service session on the version.
Request URL and parameters:
https:
//machine.domain.com/server/rest/services/County Fabric/Version Management Server/versions/E4DAED9D-C859-489B-9053-767A45F1D97C/start Reading Use dark colors for code blocks Copy f=json sessionId={609F870E-D37E-468A-91C8-E404CA1B2893}
-
Start an edit session on the version.
Request URL and parameters:
https:
//machine.domain.com/server/rest/services/County Fabric/Version Management Server/versions/E4DAED9D-C859-489B-9053-767A45F1D97C/start Editing Use dark colors for code blocks Copy f=json sessionId={609F870E-D37E-468A-91C8-E404CA1B2893}
-
Change the parcel type of the specified parcel. No subtype is used.
Request URL and parameters:
https:
//machine.domain.com/server/rest/services/County Fabric/Parcel Fabric Server/change Parcel Type Use dark colors for code blocks Copy f=json gdbVersion=admin.Version1 sessionId={609F870E-D37E-468A-91C8-E404CA1B2893} parcels=[{"id":"{5557DBE3-814C-4795-873F-31D0FC5FE8D6}","layerId":"16"}] record={67D9858E-B4D8-4C12-84C9-685EBA04B741} targetParcelType=16 targetParcelSubtype=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": { // only if success is false
"extendedCode": <HRESULT>,
"message": <error message>,
"details": [<detail>]
},
"serviceEdits": { // only if transfer limit is not exceeded
"editedFeatures": {
"deletes": {
"attributes": {},
"geometry": {}
},
"adds": {
"attributes": {},
"geometry": {}
},
{
"spatialReference": {<spatial reference>}
},
"id" : <layerID>
}
},
"success": <true | false>
}
The following response is returned when async
is true
:
{
"statusUrl": <url>
}
JSON Response example
The following is a response example when async
is false
:
{
"moment": 1570226366327,
"exceededTransferLimit": false,
"serviceEdits": [
{
"id": 2,
"editedFeatures": {
"spatialReference": {
"wkt": "PROJCS[\"User_Defined_Transverse_Mercator\",GEOGCS[\"GCS_User_Defined\",DATUM[\"D_User_Defined\",SPHEROID[\"User_Defined_Spheroid\",6378285.48,298.2641653866821]],PRIMEM[\"Greenwich\",0.0],UNIT
[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",262000.0009333333],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",-87.55],
PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",43.26666666666667],UNIT[\"Foot_US\",0.3048006096012192]]",
"xyTolerance": 0.0032808333333333331,
"zTolerance": 0.001,
"mTolerance": 0.001,
"falseX": -18187000,
"falseY": -48539200,
"xyUnits": 3048.00609601219276,
"falseZ": -100000,
"zUnits": 10000,
"falseM": -100000,
"mUnits": 10000
},
"adds": [
{
"attributes": {
"ObjectID": 129607,
"IsRetired": 1,
"Shape__Area": 36539.00962924771,
"Shape__Length": 770.920374162495136
},
"geometry": {
"rings": [
[
[204062.347066827118, 179762.833532989025],
[204062.347066827118, 179980.178242653608],
[204230.462544243783, 179980.178242653608],
[204230.462544243783, 179762.833532989025],
[204062.347066827118, 179762.833532989025]
]
]
}
},
{
"attributes": {
"ObjectID": 129608,
"IsRetired": 1,
"Shape__Area": 520.603541464089972,
"Shape__Length": 340.22832216322422
}
}
]
}
},
{
"id": 22,
"editedFeatures": {
"spatialReference": {
"wkt": "PROJCS[\"User_Defined_Transverse_Mercator\",GEOGCS[\"GCS_User_Defined\",DATUM[\"D_User_Defined\",SPHEROID[\"User_Defined_Spheroid\",6378285.48,298.2641653866821]],PRIMEM[\"Greenwich
\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",262000.0009333333],PARAMETER[\"False_Northing\",0.0],PARAMETER
[\"Central_Meridian\",-87.55],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",43.26666666666667],UNIT[\"Foot_US\",0.3048006096012192]]",
"xyTolerance": 0.0032808333333333331,
"zTolerance": 0.001,
"mTolerance": 0.001,
"falseX": -18187000,
"falseY": -48539200,
"xyUnits": 3048.00609601219276,
"falseZ": -100000,
"zUnits": 10000,
"falseM": -100000,"mUnits": 10000
},
"adds": [
{
"attributes": {
"objectid": 7,
"name": "59024350970",
"parcelsubtype": null,
"createdbyrecord": "{7C149CD4-285E-4197-980B-177E8CBBE30D}",
"retiredbyrecord": null,
"statedarea": 35773.0,
"statedareaunit": null,
"calculatedarea": null,
"miscloseratio": 100000.0,
"misclosedistance": 0.0,
"isseed": 0,
"created_user": "admin",
"create_date": 1570226370000,
"last_edited_user": "admin",
"last_edited_date": 1570226370000,
"globalid": "{ADEB6B4F-FF83-47FD-BDF5-C150B6F024F0}",
"modifydate": 1440004271000,
"Shape__Area": 35773.08418850592,
"Shape__Length": 762.458523272954722
},
"geometry": {
"hasZ": true,
"rings": [
[
[204230.449420914054, 179977.073918156326, 0],
[204229.33065674454, 179762.846656322479, 0],
[204062.360190160573, 179765.937857486308, 0],
[204063.478954330087, 179980.165119320154, 0],
[204230.449420914054, 179977.073918156326, 0]
]
]
}
}
]
}
],
"success": true
}