globalmapper.SpatialTransform¶
- globalmapper.SpatialTransform(GM_SpatialTransforms_t16 aTransform, GM_LayerHandle_t32 aLayer, GM_SpatialOps_Params_t aParams, GM_FeatureGrouping_t8 aGrouping, str aStr) GM_Error_t32 [source]¶
General Transform function. Can be used to perform any of the one-layer spatial transform functions available in Global Mapper, using aTransform to define which transform function.
Currently, the available transform functions and their parameter values are:
SpatialMBR - GM_SpatialTransform_MBR
SpatialCenter - GM_SpatialTransform_Center
SpatialConvexHull - GM_SpatialTransform_ConvexHull
SpatialConcaveHull - GM_SpatialTransform_ConcaveHull
SpatialBuffer - GM_SpatialTransform_Buffer
- Parameters:
aTransform (GM_SpatialTransforms_t16) – Transform type
aLayer (GM_LayerHandle_t32) – Input layer
aParams (GM_SpatialOps_Params_t) – Parameters
aGrouping (GM_FeatureGrouping_t8) – Grouping type
aStr (str) – The attribute list string; may be an empty string
- Returns:
Error Code
- Return type:
GM_Error_t32