User Tools

Site Tools


api:dk11:delphi:gisviewer.tgis_viewer.open_string

TGIS_Viewer.Open(String) method

Syntax

Implements IGIS_Viewer.Open.

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

Parameters

Name Type Description
_path String project path (or layer)

Remarks

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.

Example

Delphi

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 ;

References

2025/01/31 01:09

Page Tools