User Tools

Site Tools


api:dk11:delphi:gisinterfaces.igis_viewer.get_string

Table of Contents



IGIS_Viewer.Get method

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'.

Available also on: .NET | Java | ActiveX | Python.

Syntax

// Delphi
public
  function Get(
    const _name : String
  ) : TGIS_LayerAbstract;
// C++ Builder
public:
  TGIS_LayerAbstract* Get(
    const UnicodeString _name
  ) = 0;

Parameters

Name Type Description
_name String name of the layer to find

Result

Type Description
TGIS_LayerAbstract Found layer or nil if not found.

Remarks

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)

2026/10/31 22:59

Page Tools