DBWriteArray()

  DBWriteArray

Description

DBWriteArray() is used to write an array to a PCIDSK file as an array segment.

Call Signature

int DBWriteArray ( int/string filespec, int segment_num, double ptr buffer [, int num_entries] )

Return Value

int

Returns the segment number written to. This is primarily useful when a new segment has been created.

Arguments

int/string filespec:

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

int segment_num:

The segment number containing the LUT to be written over. If this is zero and the database is a PCIDSK file, a new ARR segment will be created.

double ptr buffer:

An array of double precision values to be written to the array segment.

[ int num_entries ]:

If provided this indicates the number of entries from the passed "buffer" array to write to the array segment. If it is not provided all the entries in the buffer array are written to the array segment.

See also

GDB file functions

DBReadArray()

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