DBSegCreate()

  DBSegCreate

Description

DBSegCreate() is used to add a new segment to a GDB file.

Call Signature

int DBSegCreate ( int/string filespec, string segment_name, string segment_desc, string segment_type )

Return Value

int

The segment number created, or if an error is trapped it returns a value less than 1.

Arguments

int/string filespec:

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

string segment_name:

The name to be applied to the segment (ignored for some formats).

string segment_desc:

The Description to be applied to the segment.

string segment_type:

The short type name for the segment, such as "VEC" for vectors. See DBNextSeg() for a full list of types.

Remarks

Only a few formats (including PCIDSK) support creation of new segments.

See also

GDB file functions

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