Types for Spatial Operations

The following types are used for spatial operation functions within GlobalMapper. These types use fixed, numeric constants, which are defined here.


globalmapper.GM_PredicateResultTargets_t8

Result targets for predicate results

Values:
GM_PredicateResult_CreateNewSelection = 0

Create new selection from matched features

GM_PredicateResult_AddToSelection = 1

Add matched features to current selection

GM_PredicateResult_RemoveFromSelection = 2

Remove matched features from current selection

GM_PredicateResult_CreateNewLayer = 3

Clone matched features into a new layer

GM_PredicateResult_ReturnFeatures = 4

Return matched via GM_FoundFeatureResults_t*

GM_PredicateResult_InvertSelection = 5

Deselect matched features that are selected, and select those that aren’t


globalmapper.GM_SpatialOperations_t8

Spatial operation types

Values:
GM_SpatialOps_Intersection = 0

Returns the spatial intersection of two layers

GM_SpatialOps_Union = 1

Returns the the spatial union of two layers, or among features of a single layer

GM_SpatialOps_Difference = 2

Returns the the spatial difference between two layers

GM_SpatialOps_SymmetricDifference = 3

Returns the the spatial symmetric difference between two layers


globalmapper.GM_SpatialOps_Errorhandling_t8

Flags specifying how to handle invalid input geometries

Values:
GM_SpatialOps_OnErrorHalt = 0

Halt further processing

GM_SpatialOps_OnErrorSkip = 1

Skip invalid geometries

GM_SpatialOps_OnErrorIgnore = 2

Use invalid geometries anyway


globalmapper.GM_SpatialPredicates_t16

Spatial predicate types

Values:
GM_SpatialPredicates_Intersects = 1

Calculates the set of features that intersect features in another layer

GM_SpatialPredicates_Overlaps = 2

Calculates the set of features that overlap features in another layer

GM_SpatialPredicates_Touches = 4

Calculates the set of features that touch features in another layer

GM_SpatialPredicates_Contains = 8

Calculates the set of features that wholly contain features in another layer

GM_SpatialPredicates_IsEqual = 16

Calculates the set of features that have have an exact match with the geometry of a feature in another layer

GM_SpatialPredicates_IsWithin = 32

Calculates the set of features that are wholly contained by a feature in another layer

GM_SpatialPredicates_IsDisjoint = 64

Calculates the set of features that do not intersect features in another layer


globalmapper.GM_SpatialTransforms_t16

Spatial transform types

Values:
GM_SpatialTransform_MBR = 1

Returns a bounding rectangle area feature for each grouping of a given layer

GM_SpatialTransform_Center = 2

Returns a center point feature for each grouping of a given layer

GM_SpatialTransform_ConvexHull = 3

Returns a convex hull area feature for each grouping of a given layer

GM_SpatialTransform_ConcaveHull = 4

Returns a concave hull area feature for each grouping of a given layer

GM_SpatialTransform_Buffer = 5

Returns a buffer area feature at a given distance from each grouping of a given layer

GM_SpatialTransform_Centroid = 6

Returns a centroid point feature for each grouping of a given layer

GM_SpatialTransform_Circle = 7

Returns a circle area feature for each grouping of a given layer


globalmapper.GM_FeatureGrouping_t8

Feature grouping for spatial transforms

Values:
GM_GroupingNone = 0

No grouping; features are handled individually

GM_GroupingPartition = 1

Group features by attribute matching

GM_GroupingAll = 2

Include all features in a single group