PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ DBFReadDoubleAttribute()

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

Definition at line 1131 of file dbfopen.c.

1133 {
1134  double *pdValue;
1135 
1136  pdValue = STATIC_CAST(double *, DBFReadAttribute( psDBF, iRecord, iField, 'N' ));
1137 
1138  if( pdValue == SHPLIB_NULLPTR )
1139  return 0.0;
1140  else
1141  return *pdValue ;
1142 }
#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:1017

References DBFReadAttribute(), SHPLIB_NULLPTR, and STATIC_CAST.

Here is the call graph for this function: