LoadFiles
Loads multiple files of different file types into the current project, adding each one as the TerraExplorer object that is the best match for the respective file based on an analysis of the file’s properties as well as other factors. All file types supported in TerraExplorer can be included in the array, and are loaded into the project as follows:
File Type |
How Loaded |
FLY (no project open) |
Project file |
FLY (project already open) |
Project layer |
MPT (no MPT already open) |
Terrain database |
MPT (MPT already open) |
Ignored |
Geo-referenced Layer |
Loaded in correct location on terrain |
Feature Layer |
Loaded with default settings |
Raster Layer: Width & height < 1000px |
Image label |
Raster Layer: Width & height > 1000px, elevation-specific file format |
Elevation layer |
Raster Layer: Width & height > 1000px, not elevation-specific file format |
Imagery layer |
JavaScript |
|
LoadFiles( FileNamesArray, GroupID) |
C# |
|
void LoadFiles ( object FileNamesArray, string GroupID = "") |
C++ |
|
HRESULT LoadFiles ( VARIANT FileNamesArray, BSTR GroupID) |
Parameters
FileNamesArray
An array of full path names or URLs of the files to be loaded.
GroupID
The Project Tree group into which the files should be loaded. If it is set to an empty string, the files are loaded under the root.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.