DK for Delphi | GisInterfaces.IGIS_Viewer.Open | Overloads | Methods | Properties
Open a project or layer.
// Delphi public procedure Open( const _path : String ); overload;
// C++ Builder public: void Open( const UnicodeString _path ) = 0 /* overload */;
| Name | Type | Description |
|---|---|---|
| _path | String | Project path or layer path. |
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)