PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ DBFReadDoubleAttribute()

double SHPAPI_CALL DBFReadDoubleAttribute ( DBFHandle  hDBF,
int  iShape,
int  iField 
)

Definition at line 1122 of file dbfopen.c.

1124 {
1125  double *pdValue;
1126 
1127  pdValue = STATIC_CAST(double *, DBFReadAttribute( psDBF, iRecord, iField, 'N' ));
1128 
1129  if( pdValue == SHPLIB_NULLPTR )
1130  return 0.0;
1131  else
1132  return *pdValue ;
1133 }
#define STATIC_CAST(type, x)
Definition: dbfopen.c:96
#define SHPLIB_NULLPTR
Definition: dbfopen.c:99
static void * DBFReadAttribute(DBFHandle psDBF, int hEntity, int iField, char chReqType)
Definition: dbfopen.c:1008

References DBFReadAttribute(), SHPLIB_NULLPTR, and STATIC_CAST.

Here is the call graph for this function: