- URL:https://<parcelfabricservice-url>/analyzeByLeastSquaresAdjustment
- Required Capability:ArcGIS Advanced Editing
- Version Introduced:10.8.1
Description
The analyzeByLeastSquaresAdjustment operation analyzes the parcel fabric measurement network by running a least squares adjustment on the input parcels. A least-squares adjustment is a mathematical procedure that uses statistical analysis to estimate the most likely coordinates for connected points in a measurement network.
Different types of adjustments can be run on the parcel fabric depending on whether you are evaluating spatial accuracy or improving spatial accuracy. The following two least squares analysis types can be run on the parcel fabric:
- Consistency check—A free network adjustment is used to check measurements (dimensions) on input parcel lines for blunders and outliers.
- Weighted least squares—Two or more fixed or weighted control points are used to estimate updated coordinates for points on the input parcels.
Use applyLeastSquaresAdjustment to apply the results of a least squares adjustment to parcel fabric feature classes.
Request parameters
Parameter | Details |
---|---|
gdbVersion | The name of the geodatabase version (the default is the DEFAULT version). Syntax
|
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
|
analysisType | Specifies the type of least squares analysis that will be run on the input parcels.
Syntax
|
convergenceTolerance | The maximum coordinate shift expected after iterating the least squares adjustment. A least squares adjustment is run repeatedly (in iterations) until the solution converges. The solution is considered converged when maximum coordinate shift encountered becomes less than the specified convergence tolerance. The default value is 0.05 meters or 0.164 feet. Syntax
|
parcelFeatures | The input parcels that will be analyzed using a least squares adjustment. Syntax
|
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 performing a consistency check on input parcels using the analyzeByLeastSquaresAdjustment operation.
Note:
The sessionId parameter value must be the same for starting the edit session, performing the edit operation, and stopping the edit session.- 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={24deea33-b826-42de-9cc3-7200093da4be}
- 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={24deea33-b826-42de-9cc3-7200093da4be}
- Run a consistency check on the specified parcels using the analyzeByLeastSquaresAdjustment operation.
Request URL and parameters:
https://machine.domain.com/webadaptor/rest/services/CountyFabric/ParcelFabricServer/analyzeByLeastSquaresAdjustment f=json gdbVersion=admin.Version1 sessionId={24deea33-b826-42de-9cc3-7200093da4be} analysisType=CONSISTENCY_CHECK convergenceTolerance=0.16404199475065617 parcelFeatures=[{"id":"{455428FC-63F9-4967-94E7-2A5C0D259B90}","layerId":"7"},{"id":"{D4A18A8A-7217-4FE9-853F-F28F155AB6EE}","layerId":"7"},{"id":"{1675EC35-7C8D-4A0E-8B1C-F51B7B989718}","layerId":"7"},{"id":"{13AF598B-1BB8-4ACB-A642-BDC1CA6E81F6}","layerId":"7"},{"id":"{71C444CF-34B1-47EA-86B5-4F543A58043B}","layerId":"13"},{"id":"{EA131013-1980-4A93-B7FD-DDD14291DC6A}","layerId":"13"},{"id":"{FCE266F4-757B-42FA-81E2-7030E341483B}","layerId":"13"}] async=true
- When edits are complete, stop the edit session.
- 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/Parcel_Fabric/ParcelFabricServer/jobs/j7342ce4d28494f3aa2ba27dc88092c90",
"success": true
}