GM_SpatialPredicate

General predicate operation

Performs the spatial predicate specified by aPredicate. The layer parameters aLayer1 and aLayer2 must not be NULL. The aParams's mPredicateResultTarget parameter specifies the result target type. If it's equal to GM_PredicateResult_CreateNewLayer, then the aParams' mResultLayerName parameter must not be NULL.

The result layer handle is returned in the aParams' mResultLayer member; it will be NULL if the operation fails.

Syntax

C++
Copy
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_SpatialPredicate
(
GM_SpatialPredicates_t16     aPredicate,  // IN: Predicate(s) to use
GM_LayerHandle_t32           aLayer1,     // IN: First layer in predicate
GM_LayerHandle_t32           aLayer2,     // IN: Second layer in predicate
GM_SpatialOps_Params_t*      aParams      // IN: Parameters
)