SetClassification

This method sets the value of a specified property of the group. You can set a constant value, or a classification XML.

Classification XML is used for persistence of a classification which is defined in the TerraExplorer Pro GUI. When a classification is defined using the Field by Attribute dialog box, you can use GetClassification to retrieve an XML that defines this classification. See: “Feature Layers” chapter in the User Manual.

 

 

JavaScript

 

SetClassification(

       Name,

       Value)

 

C#

 

void SetClassification(

       string Name,

       string Value)

 

C++

 

HRESULT SetClassification(

       BSTR Name,

       BSTR Value)

Parameters

Name

The name of the property to be set. The parameter can be a name of any property field as it appears in the Layer tab of the Layer property sheet in TerraExplorer (e.g., “Altitude Method”).

Value

The value of the property as defined in the propValType parameter. This parameter can be any of the following:

·          The type expected for the specified property. For example, “Altitude” returns a long type value.

·          A valid expression encapsulated in “<” and “>” marks, as defined in the user manual. See: “Feature Layers” chapter in the User Manual.

·          An XML string, see method’s description.

Exceptions

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