Open

Opens a Fly file or terrain database. Open passes the user name and password for the terrain database opened. In addition, Open can work in synchronous or asynchronous mode. In synchronous mode the method returns after the file is loaded. In asynchronous mode, the method returns immediately. You can then use ISGWorld.OnLoadFinished to be notified when the file is loaded.

 

JavaScript

 

Open(

       ProjectURL,

       Asynchronous,

       User,

       Password )

 

C#

 

void Open(

       string ProjectURL,

       bool Asynchronous = false,

       string User = "",

       string Password = "")

 

C++

 

HRESULT Open(

       BSTR ProjectURL,

       VARIANT_BOOL Asynchronous,

       BSTR User,

       BSTR Password) 

 

Parameters

ProjectURL

A full path name or a URL of a Fly file to be loaded by TerraExplorer. You can also load a local terrain database file by using a full path name to an MPT file, or a terrain database from TerraGate by following the format: “TerrainDatabase.Type@TerraGateAddress:PortNumber” (e.g., [email protected]).

Asynchronous

When set to TRUE, the method executes asynchronously, meaning returns immediately. When set to FALSE, the method executes synchronously.

User

File’s security user name. If the file is not secure, the user name is ignored.

Password 

Security password for the specified user. If the file is not secure, the password is ignored.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.