Retrieves the data in the GSA attribute file based on the column number.
Syntax
intl gdlGetAttributeInfoByNumber ( gdlFileHandle hFile, intl fieldNumber, gdlAttributeInfoStruct *info);
Arguments
hFile
A gdlFileHandle. Input.
fieldNumber
The field index into the attribute GSA file. Input.
*info
The gdlAttributeInfoStruct that contains the information about the attribute. Output.
Return Value
GDL_OK
GDL_ERROR
Prerequisites
gdlOpenSpatialFile
Alternates
None.
Notes
The gdlGetAttributeInfoByNumber function uses gdlAttributeInfoStruct as a data structure to hold information about the specified attribute.
Example
The gdlAttributeInfoStruct holds the following file information:
Field | Description |
---|---|
char name[12] | Field name. |
char value[256] | Field value. |
intl length | Field length. |
intl type | Field type: CHARACTER=67, NUMERIC=78. |
intl decimals | If numeric, are there any decimals? |