SpatialPredicate¶
- globalmapper.SpatialPredicate(GM_SpatialPredicates_t16 aPredicate, GM_LayerHandle_t32 aLayer1, GM_LayerHandle_t32 aLayer2, GM_SpatialOps_Params_t aParams) GM_Error_t32 [source]¶
General predicate function. Can be used to perform any of the two-layer spatial predicate functions available in Global Mapper. These are functions in which the order of the input layers matter, as opposed to spatial operations, which will have the same result regardless of order.
Currently, the available predicate functions and their parameter values are:
SpatialIntersects - GM_SpatialPredicates_Intersects
SpatialOverlaps - GM_SpatialPredicates_Overlaps
SpatialTouches - GM_SpatialPredicates_Touches
SpatialContains - GM_SpatialPredicates_Contains
SpatialEquals - GM_SpatialPredicates_IsEqual
SpatialWithin - GM_SpatialPredicates_IsWithin
SpatialDisjoint - GM_SpatialPredicates_IsDisjoint
- Parameters:
aPredicate (GM_SpatialPredicates_t16) – Predicate(s) to use
aLayer1 (GM_LayerHandle_t32) – First layer in predicate
aLayer2 (GM_LayerHandle_t32) – Second layer in predicate
aParams (GM_SpatialOps_Params_t) – Parameters
- Returns:
Error Code
- Return type:
GM_Error_t32