Skip To Content

Create seeds

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

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

Syntax

gdbVersion=<version>
sessionId

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

sessionId=<guid>
extent

(Optional)

The envelope of the extent where the seeds will be created.

Syntax

{"xmin":<X min>,"ymin":<y min>, "xmax": <x max>, "ymax": <y max>, "spatialReference": <wkt of spatial reference>}
record

(Required)

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

record=<guid>
async

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

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.

Note:
The sessionId parameter value must be the same for starting the edit session, performing the edit operation, and stopping the edit session.

  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={bba242fc-e671-4aa2-83d4-1c013347fa4f}

  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={bba242fc-e671-4aa2-83d4-1c013347fa4f}

  3. Create seeds for closed loops of lines that are associated with the specified record.

    Request URL and parameters:

    
    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:


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


{
		"statusUrl": <url>
}

JSON Response example

The following is a response example when async is false:


{
  "moment": 1569452045,
  "exceededTransferLimit": false,
  "serviceEdits": [
    {
      "id": 2,
      "editedFeatures": {
        "spatialReference": {
          "wkt": "PROJCS[\"User_Defined_Transverse_Mercator\",GEOGCS[\"GCS_User_Defined\",DATUM[\"D_User_Defined\",SPHEROID[\"User_Defined_Spheroid\",6378285.48,298.2641653866821]],PRIMEM[\"Greenwich\",0.0],UNIT
                 [\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",262000.0009333333],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",-87.55],
                 PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",43.26666666666667],UNIT[\"Foot_US\",0.3048006096012192]]",
          "xyTolerance": 0.0032808333333333331,
          "zTolerance": 0.001,
          "mTolerance": 0.001,
          "falseX": -18187000,
          "falseY": -48539200,
          "xyUnits": 3048.00609601219276,
          "falseZ": -100000,
          "zUnits": 10000,
          "falseM": -100000,
          "mUnits": 10000},
          "adds": [
            {
              "attributes": {
                "ObjectID": 127157,
                "IsRetired": 1,
                "Shape__Area": 43.40060210116556,
                "Shape__Length": 26.3516533374786377
              },
              "geometry": {
                "rings": [
                  [
                    [ 156067.89909266308, 173515.450030401349 ],
                    [ 156067.89909266308, 173522.037943735719 ],
                    [ 156074.487005997449, 173522.037943735719 ],
                    [ 156074.487005997449, 173515.450030401349 ],
                    [ 156067.89909266308, 173515.450030401349 ]
                  ]
                ]
              }
            }
          ]
        }
      }
    },
    {
      "id": 1,
      "editedFeatures": {
        "spatialReference": {
          "wkt": "PROJCS[\"User_Defined_Transverse_Mercator\",GEOGCS[\"GCS_User_Defined\",DATUM[\"D_User_Defined\",SPHEROID[\"User_Defined_Spheroid\",6378285.48,298.2641653866821]],PRIMEM[\"Greenwich\",0.0],UNIT
                 [\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",262000.0009333333],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",-87.55],
                 PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",43.26666666666667],UNIT[\"Foot_US\",0.3048006096012192]]",
          "xyTolerance": 0.0032808333333333331,
          "zTolerance": 0.001,
          "mTolerance": 0.001,
          "falseX": -18187000,
          "falseY": -48539200,
          "xyUnits": 3048.00609601219276,
          "falseZ": -100000,
          "zUnits": 10000,
          "falseM": -100000,
          "mUnits": 10000
        },
        "updates": [
          {
            "attributes": {
              "objectid": 6667,
              "name": Rec001",
              "recordtype": 1,
              "recordeddate": null,
              "cogoaccuracy": 3,
              "created_user": "admin",
              "create_date": 1569442740000,
              "last_edited_user": "admin",
              "last_edited_date": 1569442740000,
              "globalid": "{988F2526-D5A0-473E-BD90-363E6E345524}",
              "description": null,
              "surveyor": null,
              "company": null,
              "surveydate": null,
              "createdby": null,
              "modifiedby": null,
              "modifydate": null,
              "Shape__Area": 0,
              "Shape__Length": 0
            },
            "geometry": {
              "hasZ": true,
              "rings": []
            }
          },
          {
            "attributes": {
              "objectid": 6667,
              "name":" Rec001",
              "recordtype": 1,
              "recordeddate": null,
              "cogoaccuracy": 3,
              "created_user": "admin",
              "create_date": 1569442740000,
              "last_edited_user": "admin",
              "last_edited_date": 1569452435000,
              "globalid": "{988F2526-D5A0-473E-BD90-363E6E345524}",
              "description": null,
              "surveyor": null,
              "company": null,
              "surveydate": null,
              "createdby": null,
              "modifiedby": null,
              "modifydate": null,
              "Shape__Area": 33.8156866256736421,
              "Shape__Length": 20.6140837952416334
            },
            "geometry": {
              "hasZ": true,
              "curveRings": [
                [
                  [ 156071.193049330264, 173522.024820402265, 0 ],
                  {
                    "a": [
                      [ 156071.193049330264, 173522.024820402265, 0 ],
                      [ 156071.193049330264, 173518.743987068941 0, 1]
                    ]
                  }
                ]
              ]
            }
          }
        ]
      }
    },
    {
      "id": 16,
      "editedFeatures": {
        "spatialReference": {
          "wkt": "PROJCS[\"User_Defined_Transverse_Mercator\",GEOGCS[\"GCS_User_Defined\",DATUM[\"D_User_Defined\",SPHEROID[\"User_Defined_Spheroid\",6378285.48,298.2641653866821]],PRIMEM[\"Greenwich\",0.0],UNIT
                 [\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",262000.0009333333],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",-87.55],
                 PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",43.26666666666667],UNIT[\"Foot_US\",0.3048006096012192]]",
          "xyTolerance": 0.0032808333333333331,
          "zTolerance": 0.001,
          "mTolerance": 0.001,
          "falseX": -18187000,
          "falseY": -48539200,
          "xyUnits": 3048.00609601219276,
          "falseZ": -100000,
          "zUnits": 10000,
          "falseM": -100000,
          "mUnits": 10000
        },
        "adds": [
          {
            "attributes": {
              "accuracy": null,
              "calculatedarea": null,
              "create_date": 1569452434000,
              "created_user": "admin",
              "createdby": null,
              "createdbyrecord": "{988F2526-D5A0-473E-BD90-363E6E345524}",
              "globalid": "{D71FD5A7-901E-4968-842D-60ED3D61B87E}",
              "isseed": 1,
              "last_edited_date": 1569452434000,
              "last_edited_user": "admin",
              "Shape__Area": 33.8156866256736421,
              "Shape__Length": 20.6140837952416334
            },
            "geometry": {
              "hasZ": true,
              "curveRings": [
                [
                  [ 156071.193049330264, 173522.024820402265, 0 ],
                  {
                    "a": [
                      [ 156071.193049330264, 173522.024820402265, 0 ],
                      [ 156071.193049330264, 173518.743987068941, 0, 1]
                    ]
                  }
                ]
              ]
            }
          }
        ]
      }
    }
  ],
  "success": true
}