CreateFeature

Creates a new feature and adds it to the feature group.

 

JavaScript

 

string CreateFeature(

       Geometry,

       Attributes)

 

C#

 

string CreateFeature(

       object Geometry,

       [string Attributes = ""])

 

C++

 

HRESULT CreateFeature(

       VARIANT Geometry,

       BSTR Attributes,

       BSTR* ID)

Parameters

Geometry

The geometry of the added feature.

Attributes

The new feature’s attributes represented as a semi-colon delimited string.

Return value

ID

The ID of the newly created feature represented as a string.

Exceptions

See:  HRESULT Return Values for a list of possible values returned by the HRESULT.