Appendix 2: Displaying Data Formats
97
typedef struct {
long lLineNumber;
long lLineVersion;
long lLineType; // one of LINE_?
long lFlight;
long lYear;
long lMonth;
long lDay;
} GBN_LineRec; // record type <02>
// --- data record ---
typedef struct {
long lChanNumber; // number from channel list, 0 is
first
long lBinaryType; // incoming binary data type, one of
GS_?
double dFidStart; // start fiducial number
double dFidIncrement; // fiducial increment
long lLength; // number of data elements that
follow
// For type 2 channel records,
lLength
// will be the number of elements
times
// the lArrayDepth, and data must
be
// row ordered.
} GBN_Data; // record type <03>
// ---
// Named parameters.
//
// Database lines and channels may have associated named
information
// which is stored as named parameters and their text string
values.
// Any number of these records may immediately follow the <01>,
<02>
// or <04> records.
//
// ---
//
// Projection information.
//
// Coordinate map projections may be defined using named
parameters as
// follows:
//
//
Name
Usage
//
// "_PJ_x"
name of the X channel
// "_PJ_y"
name of the Y channel
// "_PJ_name"
POSC projection name
// "_PJ_ellipsoid"
ellipsoid name, major axis,
eccen., prime meridian
// "_PJ_projection"
projection type, parameters (see
GXF rev. 3)
// "_PJ_datum_transform"
transform name,
dX,dY,dZ,rX,rY,rZ,Scale. If not
//
defined, no local datum is assumed.
// ---
typedef struct {
char szParm[64]; // parameter name, NULL
terminated
char szValue[128]; // parameter value, NULL
terminated