globalmapper.SpatialDifference

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

The Difference operation is akin to the subtraction of layer 2 from layer 1. This operation will output the parts in layer 1 that are not covered by layer 2. Attributes for the new features are copied from their source features in the first input layer.

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