gdlGetAttributeCount - geographicdeterminationlibrary - 2024.00

Geographic Determination Library Reference for Windows and z/OS

Product type
Software
Portfolio
Locate
Product family
GeoStan Geocoding Suite
Product
GeoStan Geocoding Suite > Geographic Determination Library
Version
2024.00
Language
English
Product name
GeoStan Geocoding Suite
Title
Geographic Determination Library Reference for Windows and z/OS
Copyright
2024
First publish date
1994
Last updated
2024-05-09
Published on
2024-05-09T00:55:21.277227

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 );
   }
  }