Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  ENVI API  >  ENVI Classic Data Control  >  ENVI_OPEN_GDB

ENVI_OPEN_GDB

ENVI_OPEN_GDB

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.

Syntax


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

Arguments


CatalogPath

A catalog path is one that ArcGIS® software 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.

File geodatabase:

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

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

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'

Keywords


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.

R_FID

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.



© 2018 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us