DBNextSeg()

  DBNextSeg

Description

DBNextSeg() is used to find a segment of a particular type.

Call Signature

int DBNextSeg ( int/string filespec, string segment_type, int last_segment )

Return Value

int

-1 is returned if last_segment is the last segment of a particular type in the database otherwise the segment following last_segment in the database will be returned.

Arguments

int/string filespec:

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

string segment_type:

One of "PCT", "LUT", "BIT", "VEC", "GCP", "TEX", "SIG", "BIN", "ARR" or "ORB".

int last_segment:

The segment previously returned from DBNextSeg(), or -1 to return the first segment of this type.

See also GDB file functions

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