SpatialUnion

globalmapper.SpatialUnion(GM_LayerHandle_t32 aLayer1, GM_LayerHandle_t32 aLayer2, GM_SpatialOps_Params_t aParams) GM_Error_t32[source]

The Union operation creates a new layer consisting of all regions from the two input layers. Regions that overlap are split from their containing features. Attributes of non-overlapping regions will come from their original layer; attributes from overlapping regions will come from the features that participated in the overlap.

Parameters:
  • aLayer1 (GM_LayerHandle_t32) – First layer in operation

  • aLayer2 (GM_LayerHandle_t32) – Second layer in operation

  • aParams (GM_SpatialOps_Params_t) – Parameters

Returns:

Error Code

Return type:

GM_Error_t32