Types for Raster Data and Operations¶
The following types are associated with operations specifically on raster data. These types use fixed, numeric constants, which are defined here.
- globalmapper.GM_BandLayout_t8¶
Definition of different band layouts
- Values
- GM_BandLayout_BIL = 0
Band Interleaved - All reds for row, then all greens for row, then all blues for row, then next row
- GM_BandLayout_BSQ = 1
Band Sequential - All reds for image, then all greens for image, then all blues for image
- GM_BandLayout_BIP = 2
Band Interleaved Pixel - RGB for each pixel
GM_BandLayout_Grayscale = 3
GM_BandLayout_NumBandLayouts = 4
- globalmapper.GM_BandValType_t8¶
Definition of different data types used for raster band values
- Values
- GM_VAL_U8 = 0
Unsigned 8-bit integer
- GM_VAL_S8 = 1
Signed 8-bit integer
- GM_VAL_U16 = 2
Unsigned 16-bit integer
- GM_VAL_S16 = 3
Signed 16-bit integer
- GM_VAL_U32 = 4
Unsigned 32-bit integer
- GM_VAL_S32 = 5
Signed 32-bit integer
- GM_VAL_U64 = 6
Unsigned 64-bit integer
- GM_VAL_S64 = 7
Signed 64-bit integer
- GM_VAL_F32 = 8
32-bit float
- GM_VAL_F64 = 9
64-bit double
GM_VAL_NUM_TYPES = 10
- globalmapper.GM_PixelOrientation_t8¶
Definition of possible pixel orders for raw data in gridded layers
- Values
- GM_Orientation_TOPLEFT = 0
Row major, row 0 top, column 0 left-hand side
- GM_Orientation_TOPRIGHT = 1
Row major, row 0 top, column 0 right-hand side
- GM_Orientation_BOTRIGHT = 2
Row major, row 0 bottom, column 0 right-hand side
- GM_Orientation_BOTLEFT = 3
Row major, row 0 bottom, column 0 left-hand side
- GM_Orientation_LEFTTOP = 4
Column major, row 0 left-hand side, column 0 top
- GM_Orientation_RIGHTTOP = 5
Column major, row 0 right-hand side, column 0 top
- GM_Orientation_RIGHTBOT = 6
Column major, row 0 right-hand side, column 0 bottom
- GM_Orientation_LEFTBOT = 7
Column major, row 0 left-hand side, column 0 bottom
GM_Orientation_NumTypes = 8
GM_Orientation_Default = GM_Orientation_TOPLEFT
- globalmapper.GM_RasterLayoutFlags_t32¶
This is a set of bit flags for custom raster layers
- Values
- GM_RasterLayout_BGROrder = 0x00000001
Color bands are in order BGR rather than RGB
- GM_RasterLayout_AlphaPresent = 0x00000002
An alpha band is present. Use mAlphaBandIdx in GM_RasterLayout_t to specify band index.
- GM_RasterLayout_CopyData = 0x00000004
Make copy of data so that caller doesn’t have to keep buffer around
- GM_RasterLayout_ColMajorOrder = 0x00000008
Data is in column-major order rather than row-major
- GM_RasterLayout_ReverseRows = 0x00000010
Data goes from bottom-to-top rather than top-to-bottom
- GM_RasterLayout_ReverseCols = 0x00000020
Data goes from right-to-left rather than left-to-right
- globalmapper.GM_RasterTypeFlags_t32¶
Type defines what type of data a raster/elevation layer has. One or more of these flags can be set.
- Values
- GM_RasterType_Image = 0x00000001
Layer contains a rendered image (i.e. grid of colors)
- GM_RasterType_ElevGrid = 0x00000002
Layer contains a grid of values that are treated as elevations (other flags may indicate true nature of data)
- GM_RasterType_Density = 0x00000004
Grid values are actual density values calculated for a density grid
- GM_RasterType_Roughness = 0x00000008
Grid values are actual roughness length values
- GM_RasterType_ViewShed = 0x00000010
Color values are on or off values of a view shed
- GM_RasterType_LandCover = 0x00000020
Color/grid values are for land cover classifications
- GM_RasterType_PowerGrid = 0x00000040
Grid values are actually transmission power in dB (like from a view shed)
- GM_RasterType_Count = 0x00000080
Grid values are a count or quality setting (like from combine/count operation)
- GM_RasterType_Intensity = 0x00000100
Grid values are intensity values (typically from Lidar points)
- GM_RasterType_NDVI = 0x00000200
Grid values are NDVI values
- GM_RasterType_NDWI = 0x00000400
Grid values are NDWI values
- GM_RasterType_Gravity = 0x00000800
Grid value are related to gravity, not elevation (acceleration or disturbance, usually in mGal)
- GM_RasterType_Temp = 0x00001000
Grid value are temperature values, not elevation
- GM_RasterType_Velocity = 0x00002000
Grid values are velocity values, not elevation
- GM_RasterType_UnspecNonElev = 0x00004000
Grid values are unspecified non-elevation values
- GM_RasterType_Class = 0x00008000
Grid values are some type of classification code
- GM_RasterType_Curvature = 0x00010000
Grid values are curvature (1st derivative of slope) values
- GM_RasterType_Slope = 0x00020000
Grid values are slope values
- GM_RasterType_NoWaterMask = GM_RasterType_Density | GM_RasterType_Roughness | GM_RasterType_LandCover | GM_RasterType_PowerGrid | GM_RasterType_Count | GM_RasterType_Intensity | GM_RasterType_NDVI | GM_RasterType_NDWI | GM_RasterType_Temp | GM_RasterType_Velocity | GM_RasterType_UnspecNonElev | GM_RasterType_Class | GM_RasterType_Curvature | GM_RasterType_Slope
Defined mask for those grid types not to show water on
- GM_RasterType_NoInterpolateMask = GM_RasterType_Roughness | GM_RasterType_Count | GM_RasterType_Class
Defined mask for those grid types to not interpolate
- globalmapper.GM_ResampleBoxOp_t¶
Get the box operation
- Values
- GM_BOX_OP_AVG = 0
Find average
- GM_BOX_OP_MAX = 1
Find maximum
- GM_BOX_OP_MIN = 2
Find minimum
- GM_BOX_OP_MED = 3
Find median
- GM_BOX_OP_BLUR = 4
Gaussian blur
GM_NUM_BOX_OPS = 5
- globalmapper.GM_SamplingMethod_t8¶
Enumeration of different raster/elevation sampling methods available
- Values
Miscellaneous sampling methods
- GM_SAMPLING_NEAREST_NEIGHBOR = 0
Nearest neighbor sampling
- GM_SAMPLING_BILINEAR_INTERPOLATION = 1
Bilinear interpolation
- GM_SAMPLING_BICUBIC_INTERPOLATION = 2
Bicubic interpolation
Box average methods
- GM_SAMPLING_BOX_AVG_2X2 = 3
Box averager 2x2 grid
- GM_SAMPLING_BOX_AVG_3X3 = 4
Box averager 3x3 grid
- GM_SAMPLING_BOX_AVG_4X4 = 5
Box averager 4x4 grid
- GM_SAMPLING_BOX_AVG_5X5 = 6
Box averager 5x5 grid
- GM_SAMPLING_BOX_AVG_6X6 = 7
Box averager 6x6 grid
- GM_SAMPLING_BOX_AVG_7X7 = 8
Box averager 7x7 grid
- GM_SAMPLING_BOX_AVG_8X8 = 9
Box averager 8x8 grid
- GM_SAMPLING_BOX_AVG_9X9 = 10
Box averager 9x9 grid
Box maximize methods
- GM_SAMPLING_BOX_MAX_2X2 = 11
Box maximizer 2x2 grid
- GM_SAMPLING_BOX_MAX_3X3 = 12
Box maximizer 3x3 grid
- GM_SAMPLING_BOX_MAX_4X4 = 13
Box maximizer 4x4 grid
- GM_SAMPLING_BOX_MAX_5X5 = 14
Box maximizer 5x5 grid
- GM_SAMPLING_BOX_MAX_6X6 = 15
Box maximizer 6x6 grid
- GM_SAMPLING_BOX_MAX_7X7 = 16
Box maximizer 7x7 grid
- GM_SAMPLING_BOX_MAX_8X8 = 17
Box maximizer 8x8 grid
- GM_SAMPLING_BOX_MAX_9X9 = 18
Box maximizer 9x9 grid
Box minimize methods
- GM_SAMPLING_BOX_MIN_2X2 = 19
Box minimizer 2x2 grid
- GM_SAMPLING_BOX_MIN_3X3 = 20
Box minimizer 3x3 grid
- GM_SAMPLING_BOX_MIN_4X4 = 21
Box minimizer 4x4 grid
- GM_SAMPLING_BOX_MIN_5X5 = 22
Box minimizer 5x5 grid
- GM_SAMPLING_BOX_MIN_6X6 = 23
Box minimizer 6x6 grid
- GM_SAMPLING_BOX_MIN_7X7 = 24
Box minimizer 7x7 grid
- GM_SAMPLING_BOX_MIN_8X8 = 25
Box minimizer 8x8 grid
- GM_SAMPLING_BOX_MIN_9X9 = 26
Box minimizer 9x9 grid
Box median methods
- GM_SAMPLING_BOX_MED_2X2 = 27
Box median 2x2 grid
- GM_SAMPLING_BOX_MED_3X3 = 28
Box median 3x3 grid
- GM_SAMPLING_BOX_MED_4X4 = 29
Box median 4x4 grid
- GM_SAMPLING_BOX_MED_5X5 = 30
Box median 5x5 grid
- GM_SAMPLING_BOX_MED_6X6 = 31
Box median 6x6 grid
- GM_SAMPLING_BOX_MED_7X7 = 32
Box median 7x7 grid
- GM_SAMPLING_BOX_MED_8X8 = 33
Box median 8x8 grid
- GM_SAMPLING_BOX_MED_9X9 = 34
Box median 9x9 grid
Box blur methods
- GM_SAMPLING_BOX_BLUR_3X3 = 35
Box blur (Gaussian) 3x3 grid
- GM_SAMPLING_BOX_BLUR_5X5 = 36
Box blur (Gaussian) 5x5 grid
- GM_SAMPLING_BOX_BLUR_7X7 = 37
Box blur (Gaussian) 7x7 grid
Sampling method info
GM_NUM_SAMPLING_METHODS = 38
GM_SAMPLING_BOX_AVG_FIRST = GM_SAMPLING_BOX_AVG_2X2
GM_SAMPLING_BOX_AVG_LAST = GM_SAMPLING_BOX_AVG_9X9
GM_SAMPLING_BOX_MAX_FIRST = GM_SAMPLING_BOX_MAX_2X2
GM_SAMPLING_BOX_MAX_LAST = GM_SAMPLING_BOX_MAX_9X9
GM_SAMPLING_BOX_MIN_FIRST = GM_SAMPLING_BOX_MIN_2X2
GM_SAMPLING_BOX_MIN_LAST = GM_SAMPLING_BOX_MIN_9X9
GM_SAMPLING_BOX_MED_FIRST = GM_SAMPLING_BOX_MED_2X2
GM_SAMPLING_BOX_MED_LAST = GM_SAMPLING_BOX_MED_9X9
GM_SAMPLING_BOX_BLUR_FIRST = GM_SAMPLING_BOX_BLUR_3X3
GM_SAMPLING_BOX_BLUR_LAST = GM_SAMPLING_BOX_BLUR_7X7
Define maximum box size
GM_SAMPLING_MAX_BOX_SIZE = 9
GM_SAMPLING_MAX_BLUR_SIZE = 7
- globalmapper.ZLevel_t16¶
Feature Z levels
- Values
Z level range
Z_LVL_MIN = 0x0000
Z_LVL_DFLT = 0x8000
Z_LVL_MAX = 0xFFFF
Z levels for areas
Z_LVL_LAND = Z_LVL_DFLT - 0x0800
Z_LVL_URBAN_AREA = Z_LVL_DFLT - 0x0700
Z_LVL_PARK = Z_LVL_DFLT - 0x0600
Z_LVL_SURFACE_COVER = Z_LVL_DFLT - 0x0500
Z_LVL_WATER = Z_LVL_DFLT - 0x0400
Z_LVL_INTERTIDAL = Z_LVL_DFLT - 0x0300
Z_LVL_ISOBATH = Z_LVL_DFLT - 0x0200
Z_LVL_MISC_MARINE = Z_LVL_DFLT + 0x0100
Z_LVL_BLDG_GROUND = Z_LVL_DFLT + 0x0101
Z_LVL_BLDG_FLOOR = Z_LVL_DFLT + 0x0102
Z_LVL_BLDG_WALL = Z_LVL_DFLT + 0x0103
Z_LVL_BLDG_ROOF = Z_LVL_DFLT + 0x0104
Z levels for lines
Z_LVL_CONTOURS = Z_LVL_DFLT - 0x0100
Z_LVL_ROADS = Z_LVL_DFLT + 0x0100
Z_LVL_POWERLINES = Z_LVL_DFLT + 0x0110
Z levels for multiple types
Z_LVL_BOUNDARIES = Z_LVL_DFLT + 0x0200
Z_LVL_MEASUREMENT = Z_LVL_DFLT + 0x0500