This routine has been replaced with ENVI::OpenRaster and ENVI::OpenVector.

This procedure opens a raster dataset from a valid ArcGIS catalog path. The catalog path can point to a file or enterprise geodatabase. ENVI_OPEN_GDB does not open feature classes from a geodatabase.


ENVI_OPEN_GDB, CatalogPath [, /INVISIBLE], R_FID=variable



A catalog path is one that ArcGIS recognizes; it includes the name of the geodatabase plus a raster dataset within the geodatabase. Set CatalogPath to a string value. Following are some examples of valid catalog paths.

ArcGIS File geodatabase:

Local: 'C:\data\core\CoreGeodatabase10.gdb\S068W013d_Clip'

Universal Naming Convention (UNC) path: '\\ags10\data\CoreGeodatabase10.gdb\S068W013d_clip'

ArcGIS Enterprise geodatabase:

ArcCatalog: 'Database Connections\ags10-sde.sde\sde.sde.s068w013d_Clip'

Local: 'C:\Documents and Settings\user\Application Data\Esri\Desktop10.0\ArcCatalog\ags10-sde.sde\sde.sde.s068w013d_Clip'

UNC path: '\\ags10\data\ags10-sde.sde\sde.sde.s068w013d_clip'


INVISIBLE (optional)

Set this keyword to prevent the file from automatically displaying in the ENVI Classic interface. This keyword only applies when using ENVI_OPEN_DATA_FILE in ENVI Classic programming. A file opened with the INVISIBLE keyword set will not appear in the Available Bands List and will not automatically display.


If opening a dataset was successful, R_FID is set to a valid file ID (FID). If the open failed, R_FID is set to -1 and an error message is written to the ENVI log file when you are in batch mode with logging enabled.