User Tools

Site Tools


api:dk11:delphi:gisinterfaces.igis_viewer.open_string

Table of Contents



IGIS_Viewer.Open(String) method

DK for Delphi | GisInterfaces.IGIS_Viewer.Open | Overloads | Methods | Properties

Open a project or layer.

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

Syntax

// Delphi
public
  procedure Open(
    const _path : String
  ); overload;
// C++ Builder
public:
  void Open(
    const UnicodeString _path
  ) = 0 /* overload */;

Parameters

Name Type Description
_path String Project path or layer path.

Remarks

PURPOSE: Load a viewer project or a single layer from a path.

BEHAVIOR: If a project is already open, it is closed and any stored passwords are cleared. If _path points to a registered layer type, that layer is opened instead of a project.

USAGE: Load a project file or a single layer into the viewer.

path = TGIS_Utils.GisSamplesDataDirDownload('AI.1') +
'Samples\AI\Images\marina.tiff'
GIS.Open(path)

2026/10/31 22:59

Page Tools