- globalmapper.SetFeatureAttrList(GM_LayerHandle_t32 aLayer, GM_FeatureClassType_t8 aFeatureClassType, uint32 aFeatureIndex, GM_AttrValue_t aAttrList, uint16 aNumAttrs) GM_Error_t32[source]
-
Sets the attribute list to use for a 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
aAttrList (GM_AttrValue_t) – New list of attributes to associate with feature
aNumAttrs (uint16) – Number of attributes in aAttrList
- Returns:
-
Error Code
- Return type:
-
GM_Error_t32
Example
The following is an example of SetFeatureAttrList.:
gm.SetFeatureAttrList(layers_list[0], gm.GM_FeatureClass_Area, 0, attr_array, size)
For more context refer to the vector layer editing sample scripts.
Comments
0 comments
Please sign in to leave a comment.