Change Parcel Type

URL:
https://<root>/<serviceName>/ParcelFabricServer/changeParcelType
Methods:
POST
Required Capability:
ArcGIS Advanced Editing
Version Introduced:
10.8

Description

The changeParcelType 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

ParameterDetails

gdbVersion

(Required)

Introduced at 10.8.

The name of the geodatabase version (the default is the DEFAULT version).

Syntax

Use dark colors for code blocksCopy
1
gdbVersion=<version>

sessionId

(Required)

Introduced at 10.8.

The token (GUID) used to lock the version. If the calling client is editing a named version, the sessionId value is required. If the specified version is currently locked by another session, the request will fail if the sessionId value is not provided or does not match the sessionId value that holds the exclusive lock. If the client is editing the default version, the sessionId value is not required.

Syntax

Use dark colors for code blocksCopy
1
sessionId=<guid>

parcels

(Required)

Introduced at 10.8.

The parcels that will be changed.

Syntax

Use dark colors for code blocksCopy
1
parcels=[{"id":"<parcelguid>","layerId":"16"},{...}]

targetParcelType

(Required)

Introduced at 10.8.

The target parcel type.

Syntax

Use dark colors for code blocksCopy
1
targetParcelType=<layer id>

targetParcelSubtype

(Required)

Introduced at 10.8.

The target parcel subtype.

Syntax

Use dark colors for code blocksCopy
1
targetParcelSubType=<subtype id> or 0(for no subtype)

async

(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 false.

Values: true | false

Syntax

Use dark colors for code blocksCopy
1
async=true|false

f

Specifies the output format of the response. The default response format is html.

Values: html | json

Example usage

This example shows the steps for changing the parcel type of the specified parcel using the changeParcelType operation.

  1. Start a service session on the version.

    Request URL and parameters:

    https://machine.domain.com/server/rest/services/CountyFabric/VersionManagementServer/versions/E4DAED9D-C859-489B-9053-767A45F1D97C/startReading

    Use dark colors for code blocksCopy
    1
    2
    f=json
    sessionId={609F870E-D37E-468A-91C8-E404CA1B2893}
  2. Start an edit session on the version.

    Request URL and parameters:

    https://machine.domain.com/server/rest/services/CountyFabric/VersionManagementServer/versions/E4DAED9D-C859-489B-9053-767A45F1D97C/startEditing

    Use dark colors for code blocksCopy
    1
    2
    f=json
    sessionId={609F870E-D37E-468A-91C8-E404CA1B2893}
  3. Change the parcel type of the specified parcel. No subtype is used.

    Request URL and parameters:

    https://machine.domain.com/server/rest/services/CountyFabric/ParcelFabricServer/changeParcelType

    Use dark colors for code blocksCopy
    1
    2
    3
    4
    5
    6
    7
    8
    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
  4. If edits are complete, stop the edit session.

  5. Stop and release the service session.

JSON Response syntax

The following response is returned when async is false:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
  "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:

Use dark colors for code blocksCopy
1
2
3
{
		"statusUrl": <url>
}

JSON Response example

The following is a response example when async is false:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
  "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
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.