Apply least squares adjustment

Description

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 adjustment feature classes.

Request parameters

Parameter

Details

gdbVersion

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

Syntax

gdbVersion=<version>
sessionId

Represents 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 any other 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

Represents 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)

If true, the request is processed as an asynchronous job and a URL is returned that points a location displaying the status of the job. See the topic on asynchronous usage for more information. 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.

NoteNote:
The sessionId parameters must be the same for starting the edit session, performing the edit operation and stopping the edit session.

Steps:
  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. If edits are complete, stop the edit session.
  5. Stop and release the service session.

JSON Response syntax

Response when async is true

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

JSON Response Example

Response when async is true:

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