Skip to content
URL:
https://<root>/<serviceName>/ParcelFabricServer/shrinkToSeed
Methods:
POST
Required Capability:
ArcGIS Advanced Editing
Version Introduced:
12.0

Description

The shrinkToSeed 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 shrinkToSeed operation is used with the reconstructFromSeeds operation to modify parcel lines and reconstruct parcels.

Learn more about shrinking parcels to seeds

Request parameters

ParameterDetails

gdbVersion

(Required)

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

Syntax

Use dark colors for code blocksCopy
1
gdbVersion=<version>

`sessionId

(Required)

The token (GUID) used to lock the version. If the calling client is editing a named version, the sessionId value is required. If the specified version is currently locked by another session, the request will fail if the sessionId value is not provided or does not match the sessionId value that holds the exclusive lock. If the client is editing the default version, the sessionId value is not required.

Syntax

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

parcelFeatures

(Required)

The parcels that will be collapsed to seeds.

Syntax

Use dark colors for code blocksCopy
1
parcelFeatures=[{"id":"<parcelguid>","layerId":"<layerID>"},{...}]

async

(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 false.

Values: true | false

Syntax

Use dark colors for code blocksCopy
1
async=true|false

f

Specifies the output format of the response. The default response format is html.

Values: html | json

Example usage

This example shows the steps for shrinking a parcel to a seed using the shrinkToSeed operation.

  1. Start a service session on the version.

    Request URL and parameters:

    Use dark colors for code blocksCopy
    1
    2
    3
    https://organization.example.com/<context>/rest/services/CountyFabric/VersionManagementServer/versions/E4DAED9D-C859-489B-9053-767A45F1D97C/startReading
    f=json
    sessionId={bba242fc-e671-4aa2-83d4-1c013347fa4f}
  2. Start an edit session on the version.

    Request URL and parameters:

    Use dark colors for code blocksCopy
    1
    2
    3
    https://organization.example.com/<context>/rest/services/CountyFabric/VersionManagementServer/versions/E4DAED9D-C859-489B-9053-767A45F1D97C/startEditing
    f=json
    sessionId={bba242fc-e671-4aa2-83d4-1c013347fa4f}
  3. Shrink parcels to seeds.

    Request URL and parameters:

    Use dark colors for code blocksCopy
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    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
  4. If edits are complete, stop the edit session.

  5. Stop and release the service session.

JSON Response syntax

The following response is returned when async is false:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

  "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 :

Use dark colors for code blocksCopy
1
2
3
{
		"statusUrl": <url>
}

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