Skip To Content

Reconstruct from seeds

Description

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

Learn more about reconstructing parcels from seeds

Request parameters

ParameterDetails
gdbVersion

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

Syntax

gdbVersion=<version>
sessionId

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

sessionId=<guid>
extent

The envelope of the extent that will be 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

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

Values: true | false

Syntax

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 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 sessionId value 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

The following response is returned 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

The following is a 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
}