globalmapper.AddHoleInArea¶
- globalmapper.AddHoleInArea(GM_LayerHandle_t32 aLayer, uint32 aAreaIndex, GM_HoleInArea_t aNewHoleDef, boolean aCheckHoleInParent) GM_Error_t32 [source]¶
Adds a new hole / island to the specified area feature. The new hole will be the last one in the list of holes for the feature.
The coordinates in aNewHoleDef must be in the native projection system of the layer they are being added to.
- Parameters:
aLayer (GM_LayerHandle_t32) – Layer the area is in
aAreaIndex (uint32) – 0-based index of area in layer
aNewHoleDef (GM_HoleInArea_t) – Definition of new hole to add to area feature
aCheckHoleInParent (boolean) – Confirm that the hole is completely contained within the parent area feature (a bounding box check is always done; this is a more expensive test)
- Returns:
Error Code
- Return type:
GM_Error_t32