Skip To Content

Apply least squares adjustment

  • URL:https://<parcelfabricservice-url>/applyLeastSquaresAdjustment
  • 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

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 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>
movementTolerance

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

movementTolerance=<long>
updateAttributes

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

UpdateAttributes=<boolean>
async

(Optional)

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.

Nota:
The sessionId parameter value must be the same for starting the edit session, performing the edit operation, and stopping the edit session.

  1. Start a service session on the version.

    Request URL and parameters:

    
    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:

    
    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:

    
    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:


{
  "statusUrl": <url>,
  "success": <true | false>
}

JSON Response example

The following is an example response when async is true:


{
  "statusUrl": "https://machine.domain.com/server/rest/services/Polk/ParcelFabricServer/jobs/jfc327579ac0a4b49bd9ee6a2af93680b",
  "success": true
}