Apply least squares adjustment

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

Description

The applyLeastSquaresAdjustment operation applies the results of a least-squares adjustment to parcel fabric feature classes. Least-squares adjustment results stored in the AdjustmentLines and AdjustmentPoints feature classes are applied to the corresponding parcel line, connection line, and parcel fabric point feature classes.

Use analyzeByLeastSquaresAdjustment to run a least-squares analysis on parcels and store the results in the adjustment feature classes.

Request parameters

ParameterDetails

gdbVersion

(Required)

Ingroduced at 10.8.1.

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

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

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

movementTolerance

(Required)

Introduced at 10.8.1.

The minimum allowable coordinate shift when updating parcel fabric points. If the distance between the adjustment point and the parcel fabric point is greater than the specified tolerance, the parcel fabric point is updated to the location of the adjustment point. The default tolerance is 0.05 meters or 0.164 feet.

Syntax

Use dark colors for code blocksCopy
1
movementTolerance=<long>

updateAttributes

(Required)

Introduced at 10.8.1.

Specifies whether attribute fields in the parcel fabric Points feature class will be updated with statistical metadata. The XY Uncertainty, Error Ellipse Semi Major, Error Ellipse Semi Minor, and Error Ellipse Direction fields will be updated with the values stored in the same fields in the AdjustmentPoints feature class.

Syntax

Use dark colors for code blocksCopy
1
UpdateAttributes=<boolean>

async

(Optional)

Introduced at 11.1.

Specifies whether the request will be processed asynchronously. If true, the request will be processed as an asynchronous job and a URL is returned that points to a location displaying the status of the job. The default is false.

Values: true | false

f

The response format. The default response is html.

Values: html | json | pjson

Example usage

This example shows the steps for applying the results of a least squares analysis using the applyLeastSquaresAdjustment operation.

  1. Start a service session on the version.

    Request URL and parameters:

    Use dark colors for code blocksCopy
    1
    2
    3
    https://machine.domain.com/webadaptor/rest/services/CountyFabric/VersionManagementServer/versions/E4DAED9D-C859-489B-9053-767A45F1D97C/startReading
    f=json
    sessionId={493b57b1-5998-495e-87a8-ec4dcc342168}
  2. Start an edit session on the version.

    Request URL and parameters:

    Use dark colors for code blocksCopy
    1
    2
    3
    https://machine.domain.com/webadaptor/rest/services/CountyFabric/VersionManagementServer/versions/E4DAED9D-C859-489B-9053-767A45F1D97C/startEditing
    f=json
    sessionId={493b57b1-5998-495e-87a8-ec4dcc342168}
  3. Apply the results of a least squares analysis using the applyLeastSquaresAdjustment operation.

    Request URL and parameters:

    Use dark colors for code blocksCopy
    1
    2
    3
    4
    5
    6
    7
    https://machine.domain.com/webadaptor/rest/services/CountyFabric/ParcelFabricServer/applyLeastSquaresAdjustment
    f=json
    gdbVersion=admin.Version1
    sessionId={493b57b1-5998-495e-87a8-ec4dcc342168}
    movementTolerance=0.05
    updateAttributes=true
    async=true
  4. When edits are complete, stop the edit session.

  5. Stop and release the service session.

JSON Response syntax

The following is the response syntax when async is true:

Use dark colors for code blocksCopy
1
2
3
4
{
  "statusUrl": <url>,
  "success": <true | false>
}

JSON Response example

The following is an example response when async is true:

Use dark colors for code blocksCopy
1
2
3
4
{
  "statusUrl": "https://machine.domain.com/server/rest/services/Polk/ParcelFabricServer/jobs/jfc327579ac0a4b49bd9ee6a2af93680b",
  "success": true
}

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