Skip To Content
ArcGIS Developer
Dashboard

Reconstruct from seeds

Description

The reconstructFromSeeds operation reconstructs parcels from seeds enclosed by parcel lines in the specified extent. The tool reconstructs parcels regardless of the parcel lines' associations with records.

Learn more about reconstructing parcels from seeds

Request parameters

ParameterDetails
gdbVersion

Parameter specifying the name of the geodatabase version (the default is the DEFAULT version).

Syntax

gdbVersion=<version>
sessionId

Parameter representing 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 another 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

sessionId=<guid>
extent

Parameter representing the envelope of the extent used to reconstruct seeds. Seeds that lie within the specified extent will be reconstructed into parcels.

Syntax

{"xmin":<X min>,"ymin":<y min>, "xmax": <x max>, "ymax": <y max>, "spatialReference":
 {<wkt of spatial reference>}}
async

Optional parameter, true or false. If true, the request is processed as an asynchronous job and a URL is returned that points to a location displaying the status of the job. See the topic on asynchronous usage for more information. The default is false.

Syntax

async=true|false
f

Parameter representing the output format of the response. The default response format is html.

Values: html | json

Example usage

This example shows the steps for reconstructing seeds in the specified extent using the reconstructFromSeeds operation.

Note:
The sessionId parameter value must be the same for starting the edit session, performing the edit operation, and stopping the edit session. The session ID must be a unique GUID that has not been used in a previous session. The GUID can be randomly generated.

  1. Start a service session on the version.

    Request URL and parameters:

    
    https://machine.domain.com/webadaptor/rest/services/CountyFabric/VersionManagementServer/versions/07BEA5BF-89D7-474B-BE69-A7A0D7E951AB/startReading
    f=json
    sessionId={8a92a739-c331-48b6-8402-79555dd88e85}

  2. Start an edit session on the version.

    Request URL and parameters:

    
    https://machine.domain.com/webadaptor/rest/services/CountyFabric/VersionManagementServer/versions/07BEA5BF-89D7-474B-BE69-A7A0D7E951AB/startEditing
    f=json
    sessionId={8a92a739-c331-48b6-8402-79555dd88e85}

  3. Reconstruct seeds in the specified extent.

    Request URL and parameters:

    
    https://machine.domain.com/webadaptor/rest/services/CountyFabric/ParcelFabricServer/reconstructFromSeeds
    f=json
    gdbVersion=admin.Version1
    sessionId={8a92a739-c331-48b6-8402-79555dd88e85}
    extent={"xmin":3160900.60284135584,"ymin":13847241.0501159038,"xmax":3161405.76772921067,"ymax":13847610.5474399272,"spatialReference":
    {"wkid":102740,"latestWkid":2278}}
    async=false
  4. If edits are complete, stop the edit session.
  5. Stop and release the service session.

JSON Response syntax

Response when async is false:


{
  "moment": <datetime>,
		"reconstructedParcelCount": <integer>,
  "exceededTransferLimit: <true | false>,
  "error": {  // only if success is false
    "extendedCode": <HRESULT>,
    "message": <error message>,
    "details": [<detail>]
  },
  "serviceEdits": [ ] // only if transfer limit is not exceeded
  "success": <true | false>
}

Response when async is true:


{
		"statusUrl": <url>
}

JSON Response example

Response example when async is false:


{
  "moment": 1650917850927,
  "reconstructedParcelCount": 1,
  "exceededTransferLimit": false,
  "serviceEdits": [
    {
      "id": 7,
      "editedFeatures": {
        "spatialReference": {
          "wkid": 102740,
          "latestWkid": 2278,
          "xyTolerance": 0.00328083333333333,
          "zTolerance": 0.001,
          "mTolerance": 0.001,
          "falseX": -126725700,
          "falseY": -77828800,
          "xyUnits": 3048.00609601219,
          "falseZ": -100000,
          "zUnits": 10000,
          "falseM": -100000,
          "mUnits": 10000
        },
        "adds": [
          {
            "attributes": {
              "OBJECTID": 58201,
              "CreatedByRecord": "{C78AB769-DDC9-4129-98CB-E1543B68C9AF}",
              "RetiredByRecord": null,
              "Name": null,
              "IsFixed": 0,
              "AdjustmentConstraint": 1,
              "Preserve": 0,
              "X": null,
              "Y": null,
              "Z": null,
              "XYAccuracy": null,
              "ZAccuracy": null,
              "XYUncertainty": null,
              "EllipseMajor": null,
              "EllipseMinor": null,
              "EllipseDirection": null,
              "created_user": "admin",
              "last_edited_user": "admin",
              "last_edited_date": 1650917852000,
              "GlobalID": "{042A26DA-09C7-4787-A08B-3E7E041F269C}",
              "create_date": 1650917852000
            },
            "geometry": {
              "x": 3161004.12895941734,
              "y": 13847465.4302389771,
              "z": 0
            }
          }
        ]
      }
    },
    {
      "id": 3,
      "editedFeatures": {
        "spatialReference": {
          "wkid": 102740,
          "latestWkid": 2278,
          "xyTolerance": 0.00328083333333333,
          "zTolerance": 0.001,
          "mTolerance": 0.001,
          "falseX": -126725700,
          "falseY": -77828800,
          "xyUnits": 3048.00609601219,
          "falseZ": -100000,
          "zUnits": 10000,
          "falseM": -100000,
          "mUnits": 10000
        },
        "updates": [
          [
            {
              "attributes": {
                "ObjectID": 15714,
                "IsRetired": 0,
                "Shape__Area": 377339.960167845071,
                "Shape__Length": 12366.0280894336829
              },
              "geometry": {
                "rings": [
                  [
                    [
                      3161164.51020033658,
                      13847541.4904543161
                    ],
                    [
                      3161164.51020033658,
                      13847331.1887095571
                    ],
                    [
                      3161015.75360807776,
                      13847331.1887095571
                    ],
                    [
                      3161007.2798717469,
                      13847331.1887095571
                    ],
                    [
                      3161004.11583608389,
                      13847331.1887095571
                    ],
                    [
                      3161004.11583608389,
                      13847465.4171156436
                    ],
                    [
                      3161004.11583608389,
                      13847465.4433623105
                    ],
                    [
                      3161004.11583608389,
                      13847534.54066506
                    ],
		...		                
  ],
  "success": true
}