GM_Layer_t Class
Object that contains all operations to be done on a single layer.
Inheritance Hierarchy
System Object
GlobalMapper GM_Layer_t

Namespace:GlobalMapper.Types
Assembly:  GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)

Syntax
C#
                                    public
                                    class
                                    GM_Layer_t
                                     : 
                                    IDisposable
                                

The GM_Layer_t type exposes the following members.

Constructors
NameDescription
Public methodGM_Layer_t
Load a Layer from a specified file.
Top
Methods
NameDescription
Public methodAddAreaToVectorLayer
Adds a area feature to a loaded vector layer
Public methodAddLineToVectorLayer
Adds a point feature to a loaded vector layer
Public methodAddPointToVectorLayer
Adds a point feature to a loaded vector layer
 AddHoleInAreaAdds a new hole / island to a loaded area feature
Public methodClose
Closes Layer and cleans unmanaged code. Returns GM_Error_t32
Public methodStatic memberCombineTerrainLayers
Creates a new terrain layer by combining 2 loaded terrain grid layers (not implemented on WinCE)
Public methodStatic memberCreateCustomElevGridLayer
Creates a new custom layer for an in-memory elevation grid (not implemented on WinCE)
Public methodStatic memberCreateCustomRasterLayer
Creates a new custom layer for an in-memory raster grid (not implemented on WinCE)
Public methodStatic memberCreateCustomVectorLayer
Creates a new custom layer for adding vector features to
Public methodStatic memberCreateVectorLayerFromFindResults
Creates a new vector layer from the results of a find operation
 DeleteHoleInAreaChanges the delete status of a hole / island in a loaded area feature
Public methodDispose
Does the Same thing as Close
Public methodDraw
Draws the specified portion of the specified layer to the DIB. If no layer is explicitly specified, all loaded layers will be drawn.
Public methodEquals
Compares equality of two layers based off their handles
(Overrides Object Equals(Object) .)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public methodFlushCache
Flushes any in-memory cache for the layer (mainly useful in low-memory environments)
Public methodGetAreaFeature
Gets a Area Feature in this layer at the specified index with optional flags.
Public methodGetAreaFeatureEx
Gets a Area Feature in this layer at the specified index with optional flags.
Public methodStatic memberGetAvailableOnlineSourceList
Retrieves a list of all available online sources
Public methodGetFeatureElevation
Gives the elevation of a feature. Set the name of the elevation attribute using GM_Layer_m.SetLayerElevationAttribute().
Public methodGetHashCode
Gets the Hash Code
(Overrides Object GetHashCode .)
Public methodGetLayerInfo
Returns a copy of information about the specified layer. Returns NULL if the layer is not loaded.
Public methodGetLayerLidarStats
Retrieves the statistics for a Lidar layer
Public methodGetLidarPoint
Retrieves the Lidar point feature at the given index from the layer
Public methodGetLineFeature
Gets a Line Feature in this layer at the specified index with optional flags.
 GetPixelDataInRectRetrieves an entire chunk of raw data from the provided layer.
Public methodGetLineFeatureEx
Gets a Line Feature in this layer at the specified index with optional flags.
 GetOnlineLayerLocationMetadataQueries an online layer for location-specific metadata (as a file)
Public method GetLocationColor(Double, Double, GM_Color_t )
Retrieves the color at a given location from a provided layer or from the list of currently loaded raster and elevation layers (topmost layer first).
Public methodStatic member GetLocationColor(GM_Layer_t, Double, Double, GM_Color_t )
Retrieves the color at a given location from a provided layer or from the list of currently loaded raster and elevation layers (topmost layer first).
Public method GetLocationElevation(Double, Double, Single )
Retrieves the elevation at a given location from a provided layer or from the list of currently loaded elevation layers (topmost elevation layer first).
Public methodStatic member GetLocationElevation(GM_Layer_t, Double, Double, Single )
Retrieves the elevation at a given location from a provided layer or from the list of currently loaded elevation layers (topmost elevation layer first).
Public methodStatic memberGetOnlineSourceInfo
Gets detailed information about an online source and checks availability
Public method GetPixelBandValue(Int32, Int32, Int32, Int32 )
Retrieves the band value at a given pixel location in the provided layer.
Public methodStatic member GetPixelBandValue(GM_Layer_t, Int32, Int32, Int32, Int32 )
Retrieves the band value at a given pixel location in the provided layer.
Public method GetPixelColor(Int32, Int32, GM_Color_t )
Retrieves the color at a given pixel location in the provided layer.
Public methodStatic member GetPixelColor(GM_Layer_t, Int32, Int32, GM_Color_t )
Retrieves the color at a given pixel location in the provided layer.
Public method GetPixelColorRow(Int32, Color , Color)
Retrieves an entire row of color values from the provided layer.
Public methodStatic member GetPixelColorRow(GM_Layer_t, Int32, Color , Color)
Retrieves an entire row of color values from the provided layer.
Public method GetPixelElevation(Int32, Int32, Single )
Retrieves the elevation at a given pixel location in the provided layer.
Public methodStatic member GetPixelElevation(GM_Layer_t, Int32, Int32, Single )
Retrieves the elevation at a given pixel location in the provided layer.
Public method GetPixelElevationRow(Int32, Single , Single)
Retrieves an entire row of elevation values from the provided layer.
Public methodStatic member GetPixelElevationRow(GM_Layer_t, Int32, Single , Single)
Retrieves an entire row of elevation values from the provided layer.
Public methodGetPointFeature
Gets a copy of a Point Feature in this layer at the specified index with optional flags.
Public methodGetPointFeatureEx
Gets a copy of a Point Feature in this layer at the specified index with optional flags.
Public methodGetType
Gets the type of the current instance.
(Inherited from Object .)
Public methodIsFeatureDeleted
Queries the delete status of the feature at the given index in the layer
 IsHoleInAreaDeletedQueries the delete status of a hole / island in a given area feature
Public methodStatic memberLoadGenericAsciiTextLayer
Loads a new layer from a simple ASCII text file file. A pointer to the layer is stored for use in later calls.
Public methodStatic memberLoadLayer
Displays a prompt to select which file to load.
Public methodStatic memberLoadOnlineLayer
Loads data from an online source, like a WMS server or TerraServer-USA
Public methodStatic memberLoadRectifiedLayer
Loads a new layer from a file. A pointer to the layer is stored for use in later calls. The layer will be rectified using the ground control points and projection provided.
Public methodLoadVectorFromWKTString
Loads a new vector layer from a WKT geometry string. A pointer to the layer is stored for use in later calls.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Public methodRepositionLayer
Repositions/reprojects a previously loaded raster layer
Public methodSetAreaFeatureClass
Sets the classification to use for the given feature.
Public methodSetAreaFeatureDrawStyle
Sets the drawing style to use for the area feature
Public methodSetAreaFeaturePointList
Sets the list of point locations to use for a given area feature
Public methodSetAreaFeaturePointListEx
Sets the list of point locations to use for a given area feature, including per-vertex elevations.
Public methodSetCodePage
Sets the codepage interpretation for the layer
Public methodSetFeatureAttrList
Sets the list of attribute/values to use for the specified feature.
Public methodSetFeatureDelete
Changes the delete status of the feature at the given index in the layer
Public methodSetFeatureDescription
Sets the description to use for the feature.
Public methodSetFeatureLabel
Sets the display label to use for the feature.
Public methodSetLayerDescription
Sets the description for the layer
Public methodSetLayerElevationAttribute
Sets the name of the attribute to use for retrieving the elevation value of features within this layer.
Public methodSetLayerElevationUnits
Sets the elevation units to use for 3D vector features without an elevation unit in the elevation attribute
Public methodSetLayerEnabled
Sets whether or not a given layer is enabled for display. If disabled, the layer will never be drawn or used as input for other translucent or texture-mapped layers.
Public methodSetLayerHeightAttribute
Sets the name of the attribute to use for retrieving the height value of point features within this layer.
Public methodSetLayerHeightUnits
Sets the height units to use for 3D vector features without a height unit in the height attribute
Public methodSetLayerLabelAttribute
Sets the name of the attribute to use for setting the display label of features within this layer.
Public methodSetLayerPalette
Sets a custom palette for the layer to override the existing palette. Only works for palette-based layers.
Public methodSetLayerUserData
Sets the user data for the layer.
Public methodSetLayerUserText
Sets the user text for the layer. Persistent through save to workspace.
Public methodSetLidarPoint
Sets the Lidar point feature at the given index from the layer
Public methodSetLineFeatureClass
Sets the classification to use for the given feature.
Public methodSetLineFeatureDrawStyle
Sets the drawing style to use for the line feature
Public methodSetLineFeaturePointList
Sets the list of point locations to use for a given line feature
Public methodSetLineFeaturePointListEx
Sets the list of point locations to use for a given line feature, including elevation list.
Public methodSetPointFeatureClass
Sets the classification to use for the given feature.
Public methodSetPointFeatureDrawStyle
Sets the drawing style to use for the point feature
Public methodSetPointFeaturePosition
Sets the location to use for a given point feature
Public methodShowOptionsDialog
Show display options dialog for layer(s)
Public methodToString
Returns a string representation of the object
(Overrides Object ToString .)
Top
Operators
NameDescription
Public operatorStatic memberEquality
Compares equality of two layers based off their handles
Public operatorStatic memberInequality
Compares inequality of two layers based off their handles
Top
Properties
NameDescription
Public propertyClosed
Returns the closed status of the layer
Top
See Also