globalmapper.DeleteHoleInArea

globalmapper.DeleteHoleInArea(GM_LayerHandle_t32 aLayer, uint32 aAreaIndex, uint32 aHoleIndex, bool aDelete) GM_Error_t32[source]

Changes the delete status of the hole / island in an area feature at the given index in the layer. Note that “deleting” a feature doesn’t actually free it or remove it from the list of features for a layer, it just marks it as deleted and makes it inactive for the purposes of drawing. To re-activate a feature that has been marked as deleted, simply call this with the aDelete value set to False.

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

  • aAreaIndex (uint32) – 0-based index of area in layer

  • aHoleIndex (uint32) – 0-based index of hole / island in area

  • aDelete (bool) – Use True to mark as deleted, False to clear delete flag

Returns:

Error Code

Return type:

GM_Error_t32