Returns the number of attributes present in the associated GSA file.
Syntax
intl gdlGetAttributeCount ( gdlFileHandle hFile, intl *attr_count);
Arguments
hFile
A gdlFileHandle. Input.
*attr_count
The number of fields in the opened attribute (GSA) file. Output.
Return Value
Number of fields in gdlOpenSpatialFile. If a GSA file does not exist, a GDL_ERROR is returned and *attr_count is set to zero.
Prerequisites
gdlOpenSpatialFile
Alternates
None.
Example
intl count;
if( gdlGetAttributeCount( hFile, &count ) == GDL_OK )
{
for( intl i = 0; i < count; i++ )
{
gdlAttributeInfoStruct info;
gdlGetAttributeInfoByNumber( hfile, i, &info );
}
}