DBOpen()

  DBChanType

Description

DBOpen() is used to establish access to an image file.

Call Signature

int DBOpen ( string filename [, string access_type] )

Return Value

int

The file handle for the opened file. 0 is returned if the call fails.

Arguments

string filename :

Name of database file to access.

[ string access_type ]:

If this argument is present, this is "r" for read access or "r+" for write access. If missing, the default access is read.

Remarks

The file handle may in turn be used with the various other DBxxx() routines such as DBLines(), DBPixels(), and so on.

An access_type of "r+" allows read and update access while the access_type of "r" only allows for reading of information from the file. Neither function allows for the creation of a new database file, which must be done using CIM or a similar program.

Access to a database file is terminated in EASI by calling DBClose().

See also

GDB file functions

DBClose()

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.