DK for Delphi | GisInterfaces.IGIS_Viewer.Get | Methods | Properties
Retrieve the layer identified by name. Sublayers or compound layers can be found using dot notation such as 'name.sublayer'.
// Delphi public function Get( const _name : String ) : TGIS_LayerAbstract;
// C++ Builder public: TGIS_LayerAbstract* Get( const UnicodeString _name ) = 0;
| Name | Type | Description |
|---|---|---|
| _name | String | name of the layer to find |
| Type | Description |
|---|---|
| TGIS_LayerAbstract | Found layer or nil if not found. |
USAGE: Retrieve a layer by name and check whether it exists before using it.
layer = viewer.Get(layer_name) if layer != nil process_layer(layer)