DK for Delphi | GisViewer.TGIS_Viewer.Open | Overloads | Constructors | Fields | Methods | Properties | Events
Open project.
Implements IGIS_Viewer.Open.
// Delphi public procedure Open( const _path : String; const _strict : Boolean ); overload;
// C++ Builder public: void Open( const UnicodeString _path, const bool _strict ) /* overload */;
Name | Type | Description |
---|---|---|
_path | String | project path (or layer) |
_strict | Boolean | if False then non existing layers will be ignored (only while opening project files); default is True ; |
If any project exists, then it will be closed and any stored passwords will be cleared. If _path content is a path to any registered layer type, then layer will be opened.
procedure MyClass.FormCreate(); begin // let's open a project GIS.Open( GisSamplesDataDir + 'states2.shp' ) ; GIS.FullExtent ; dosomething(); // and after some steps let's close it GIS.Close; end ;