SetFeatureClass

globalmapper.SetFeatureClass(GM_LayerHandle_t32 aLayer, GM_FeatureClassType_t8 aFeatureClassType, uint32 aFeatureIndex, FeatureClass_t16 aFeatureClass) GM_Error_t32[source]

Sets the feature class for the given area, line, or point feature in the given layer.

Parameters:
  • aLayer (GM_LayerHandle_t32) – Layer the feature is in

  • aFeatureClassType (GM_FeatureClassType_t8) – Type of feature class (area, point, line)

  • aFeatureIndex (uint32) – Index of feature in layer

  • aFeatureClass (FeatureClass_t16) – New feature class to assign to feature

Returns:

Error Code

Return type:

GM_Error_t32

Example

The following is an example of SetFeatureClass.:

gm.SetFeatureClass(layer_arr[0], gm.GM_FeatureClass_Line, i, gm.LFC_RAILROAD_OTHER)

For more context refer to the tutorial page on full example scripts.