globalmapper.SpatialRelate(GM_LayerHandle_t32 aLayer1, GM_LayerHandle_t32 aLayer2, GM_SpatialOps_Params_t aParams, str aStr) GM_Error_t32[source]

The Relate predicate is a useful function that can do various general spatial operations at once, based on the DE-9IM string input aStr. This string should be nine characters long, and consist of T, F, or *, where each character in the sequence represents a part of the operation that can be applied or ignored. For more information building a DE-9IM string, see

  • aLayer1 (GM_LayerHandle_t32) – First layer in predicate

  • aLayer2 (GM_LayerHandle_t32) – Second layer in predicate

  • aParams (GM_SpatialOps_Params_t) – Parameters

  • aStr (str) – The DE-9IM predicate string


Error Code

Return type