globalmapper.SetFeatureDescription

globalmapper.SetFeatureDescription(GM_LayerHandle_t32 aLayer, GM_FeatureClassType_t8 aFeatureClassType, uint32 aFeatureIndex, string aDesc) GM_Error_t32[source]

Sets the description for the given area, line, or point feature in the given layer. Pass in None for the description to reset to the original description for the feature (typically the feature classification).

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

  • aDesc (str) – New description for feature (use None to reset to default)

Returns:

Error Code

Return type:

GM_Error_t32