GM_SpatialOperation

General spatial operation

Performs the spatial operation specified by aOperation. The layer parameter aLayer1 must not be NULL. The layer parameter aLayer2 may not be NULL unless the operation type is UnionSingle. The aParams' mResultLayerName parameter specifies the result layer name, and may 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_SpatialOperation
(
GM_SpatialOperations_t8      aOperation,  // IN: Operation to use
GM_LayerHandle_t32           aLayer1,     // IN: First layer in operation
GM_LayerHandle_t32           aLayer2,     // IN: Second layer in operation; may be null
GM_SpatialOps_Params_t*      aParams      // IN: Parameters
)