- URL:
- https://<root>/<serviceName>/ParcelFabricServer/shrinkToSeed
- Methods:
POST- Required Capability:
- ArcGIS Advanced Editing
- Version Introduced:
- 12.0
Description
The shrink operation replaces the specified parcel polygons with parcel seeds and leaves the original parcel lines in place for editing and modification. The attributes of the original parcel polygons are copied to the parcel seeds.
The shrink operation is used with the reconstruct operation to modify parcel lines and reconstruct parcels.
Learn more about shrinking parcels to seeds
Request parameters
| Parameter | Details |
|---|---|
(Required) | The name of the geodatabase version (the default is the Syntax |
`sessionId (Required) | The token (GUID) used to lock the version. If the calling client is editing a named version, the Syntax |
(Required) | The parcels that will be collapsed to seeds. Syntax |
(Optional) | 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 Values: Syntax |
| Specifies the output format of the response. The default response format is Values: |
Example usage
This example shows the steps for shrinking a parcel to a seed using the shrink operation.
-
Start a service session on the version.
Request URL and parameters:
Use dark colors for code blocks Copy https://organization.example.com/<context>/rest/services/CountyFabric/VersionManagementServer/versions/E4DAED9D-C859-489B-9053-767A45F1D97C/startReading f=json sessionId={bba242fc-e671-4aa2-83d4-1c013347fa4f} -
Start an edit session on the version.
Request URL and parameters:
Use dark colors for code blocks Copy https://organization.example.com/<context>/rest/services/CountyFabric/VersionManagementServer/versions/E4DAED9D-C859-489B-9053-767A45F1D97C/startEditing f=json sessionId={bba242fc-e671-4aa2-83d4-1c013347fa4f} -
Shrink parcels to seeds.
Request URL and parameters:
Use dark colors for code blocks Copy https://organization.example.com/<context>/rest/services/CountyFabric/ParcelFabricServer/shrinkToSeed f=json gdbVersion=admin.Version1 sessionId={bba242fc-e671-4aa2-83d4-1c013347fa4f} parcels=[{"id": "{50C7CB87-F407-473A-9F0B-462C2DCFF621}", "layerId": "15"}, {"id": "{5909A555-0ED3-47BC-B366-3BAF65BEFED9}", "layerId": "15"}, {"id": "{EC321A62-1BF4-4D80-9F7B-C402EE79E629}", "layerId": "15"}, {"id": "{077C36CB-0E7B-4AB3-BA6F-7EF4F2C166D9}", "layerId": "15"}, {"id": "{B00EF83E-DDAB-4E16-B872-D3663578F944}", "layerId": "15"}] async=false -
If edits are complete, stop the edit session.
-
Stop and release the service session.
JSON Response syntax
The following response is returned when async is false:
"moment": <datetime>,
"exceededTransferLimit": <true | false>,
"serviceEdits": // only if transfer limit is not exceeded
{
"editedFeatures":
"spatialReference": {<spatialreference>},
"updates": [...]
id=<layerid>
}
"success": <true | false>,
"error": { // only if success is false
"extendedCode": <HRESULT>,
"message": <error message>,
"details": [<detail>]
}The following response is returned when async is true :
{
"statusUrl": <url>
}