Create seeds

URL:
https://<root>/<serviceName>/ParcelFabricServer/createSeeds
Methods:
POST
Required Capability:
ArcGIS Advanced Editing
Version Introduced:
10.8

Description

The createSeeds operation creates parcel seeds for closed loops of lines that are associated with the specified record.

Parcel seeds are used when building parcels from lines. A parcel seed is the initial state or seed state of a parcel. A parcel seed indicates to the build process that a parcel can be built from the lines enclosing the seed.

A parcel seed is a minimized polygon feature and is stored in the parcel type polygon feature class.

Learn more about building parcels from lines and seeds

Request parameters

ParameterDetails

gdbVersion

(Required)

Introduced at 10.8.

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

Syntax

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

sessionId

(Required)

Introduced at 10.8.

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>

extent

(Optional)

Introduced at 10.8.

The envelope of the extent where the seeds will be created. If no map extent is provided, seeds will be created for all closed loops of lines that are associated with the specified record.

Syntax

Use dark colors for code blocksCopy
1
{"xmin":<X min>,"ymin":<y min>, "xmax": <x max>, "ymax": <y max>, "spatialReference": <wkt of spatial reference>}

record

(Required)

Introduced at 10.8. The unique identifier (GUID) of the record. Seeds will be created for closed loops of lines that are associated with this record. If an extent is specified, seeds will be created for closed loops of lines that are associated with the record in the specified extent.

Syntax

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

async

(Optional)

Introduced at 11.1.

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 creating seeds for closed loops of lines using the createSeeds operation.

  1. Start a service session on the version.

    Request URL and parameters:

    Use dark colors for code blocksCopy
    1
    2
    3
    https://machine.domain.com/webadaptor/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://machine.domain.com/webadaptor/rest/services/CountyFabric/VersionManagementServer/versions/E4DAED9D-C859-489B-9053-767A45F1D97C/startEditing
    f=json
    sessionId={bba242fc-e671-4aa2-83d4-1c013347fa4f}
  3. Create seeds for all closed loops of lines that are associated with the specified record.

    Request URL and parameters:

    Use dark colors for code blocksCopy
    1
    2
    3
    4
    5
    6
    https://machine.domain.com/webadaptor/rest/services/CountyFabric/ParcelFabricServer/createSeeds
    f=json
    gdbVersion=admin.Version1
    sessionId={bba242fc-e671-4aa2-83d4-1c013347fa4f}
    record={988F2526-D5A0-473E-BD90-363E6E345524}
    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
17
18
19
20
21
22
23
24
25
26
27
{
  "exceededTransferLimit: <true | false>,
  "moment": <datetime>,
  "error": {  // only if success is false
    "extendedCode": <HRESULT>,
    "message": <error message>,
    "details": [<detail>]
  },
  "serviceEdits": {  // only if transfer limit is not exceeded
    "editedFeatures": {
      "updates": {
        "attributes": {},
        "geometry": {}
      },
      "adds": {
        "attributes": {},
        "geometry": {}
      },
      "deletes": {}
    },
    {
      "spatialReference": {<spatial reference>}
    },
    "id" : <layerID>
  },
  "success": <true | false>
}

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.