IFeature80

The properties of each feature contained within a feature layer can be returned or set from this interface.

 

Properties

 

DataSourceFeatureID

Gets the ID of the selected feature as assigned by the data source.

FeatureAttributes

An IFeatureAttributes80 representing the feature’s attributes that were imported when the feature layer was loaded.

Geometry

An IGeometry representing the geometry values with the Z value that is displayed in the 3D Window (the feature’s original Z value plus the altitude assigned to the feature group).

GeometryZ

An IGeometry representing the geometry values with the Z values from the original data source.

Highlight

Gets and sets a Boolean that determines whether the feature is highlighted in the 3D Window.

ID

Gets the ID of the feature. (Inherited from ITerraExplorerObject80)

LayerID

Gets the ID of the layer which contains the feature.

ObjectType

Gets an enum that identifies the type of the object. (Inherited from ITerraExplorerObject80)

ParentGroupID

Gets the ID of the layer or feature group which contains the feature.

SaveInFlyFile

Gets and sets a Boolean that determines whether the object is saved in the Fly file. (Inherited from ITerraExplorerObject80)

Show

Gets and sets a Boolean that determines whether to show or hide a feature.

State

Gets an enum returning changes in the feature state from when it was loaded. 

Tint

An IColor80 representing the feature’s tint color.

Note:    If after setting this property, the feature’s layer or group properties are set (e.g. using I3DMLFeatureProperties80.Tint or IFeatureGroup80.SetProperty) or operations are performed on the features (e.g. editing using IProjectTree80.EditItemEx), the Tint property setting will be overridden.

 

Methods

 

GetClientData

Gets an array of text strings assigned to each object global namespace. (Inherited from ITerraExplorerObject80)

GetParam

Reserved. Currently not used. (Inherited from ITerraExplorerObject80)

GetProperty

Returns the value set for the specified property.

SetClientData

Sets an array of text strings assigned to each object global namespace. (Inherited from ITerraExplorerObject80)

SetParam

Reserved. Currently not used. (Inherited from ITerraExplorerObject80)

DataSourceFeatureID

Gets the ID of the feature as assigned by the data source.

Note:    This property differs from IFeature80.ID as it returns the ID that the datasource itself uses, rather than the ID that TerraExplorer has assigned.

Note:    When a feature is new (i.e. IFeature80.State returns FS_NEW), then the ID returned by DataSourceFeature ID is temporary and will change when the layer is saved.

 

JavaScript

 

DataSourceFeatureID

 

C#

 

string DataSourceFeatureID { get; }

 

C++

 

HRESULT DataSourceFeatureID([out, retval] BSTR* pVal)

 

Highlight

Gets and sets a Boolean that determines whether the feature is highlighted in the 3D Window.

 

JavaScript

 

 

 

Highlight

 

C#

 

 

 

bool Highlight { get; set;}

 

C++

 

 

 

HRESULT Highlight([out, retval] VARIANT_BOOL* pVal)

HRESULT Highlight([in] VARIANT_BOOL* pVal)

 

LayerID

Gets the ID of the layer which contains the feature.

 

JavaScript

 

LayerID

 

C#

 

string LayerID { get; }

 

C++

 

HRESULT LayerID([out, retval] BSTR* pVal)

 

ParentGroupID

Gets the ID of the layer or feature group which contains the feature.

 

JavaScript

 

ParentGroupID

 

C#

 

string ParentGroupID { get; }

 

C++

 

HRESULT ParentGroupID([out, retval] BSTR* pVal)

GetProperty

Returns the value that was set for the specified property (using IFeatureGroup80.SetProperty).

 

JavaScript

 

GetProperty(

       Name)

 

C#

 

dynamic GetProperty(

       string Name)

 

C++

 

HRESULT GetProperty(

       BSTR Name,

       VARIANT* pValue)

Parameters

Name

The name of the property whose value is being returned. The parameter can be a name of any property field as it appears in the Layer property sheet in TerraExplorer (e.g., “Line Color”).

Note:    This parameter must be in English even when the user interface is in a different language.

Return Value

pValue

The value assigned to the property. Pass the variable type that is expected for the specified property, e.g. for “Line Color” pass a long type value. If the property is a drop-down menu, the zero-based integer index of the order in the list is passed. See IFeatureGroup80.SetProperty for more information.

Exceptions

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

Show

Gets and sets a Boolean that determines whether to show or hide a feature.

Note:    If the visibility of the feature’s layer is set (e.g. using IProjectTree80.SetVisibility) after setting this property, the layer setting will override this one.

 

JavaScript

 

Show

 

C#

 

string Show { get; }

 

C++

 

HRESULT Show ([out, retval] VARIANT_BOOL* pVal)

HRESULT Show ([in] VARIANT_BOOL* pVal)

 

State

Gets an enum returning changes in the feature state from when it was loaded. The following are the possible values:

§   FS_NONE                    = 0

§   FS_NEW                       = 1

§   FS_MODIFIED            = 2

§   FS_DELETED               = 3

 

JavaScript

 

State

 

C#

 

FeatureState State { get; }

 

C++

 

HRESULT State([out, retval] FeatureState* pVal)