MetaData::ReadDBLayer()

Description

ReadDBLayer() is used to read all the metadata associated with a particular layer of a supported database file.

Call Signature

ReadDBLayer ( int/string filespec, string layer_type, int layer_index )

Arguments

int/string filespec:

This can either be the handle returned by DBOpen(), or the name of an open file.

string layer_type:

The name of the type of layer. This is either "FIL" for the overall file, "IMG" for an image channel or one of the segment types listed in DBNextSeg().

int layer_index:

The channel, or segment number. Ignored if layer_type is "FIL".

Example

Read the MetaData from channel 7 of "irvine.pix"


 local int file_spec
 local MetaData mdata

 file_spec = DBOpen( "irvine.pix" )
 call mdata.ReadDBLayer( file_spec, "IMG", 7 )

See also

MetaData class

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