globalmapper.SpatialRelate ========================== .. currentmodule:: globalmapper .. py:function:: SpatialRelate (GM_LayerHandle_t32 aLayer1, GM_LayerHandle_t32 aLayer2, GM_SpatialOps_Params_t aParams, str aStr) -> GM_Error_t32 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 https://en.wikipedia.org/wiki/DE-9IM. :param GM_LayerHandle_t32 aLayer1: First layer in predicate :param GM_LayerHandle_t32 aLayer2: Second layer in predicate :param GM_SpatialOps_Params_t aParams: Parameters :param str aStr: The DE-9IM predicate string :returns: Error Code :rtype: GM_Error_t32