PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ SHPGetInfo()

void SHPAPI_CALL SHPGetInfo ( SHPHandle  psSHP,
int *  pnEntities,
int *  pnShapeType,
double *  padfMinBound,
double *  padfMaxBound 
)

Definition at line 947 of file shpopen.c.

950 {
951  int i;
952 
953  if( psSHP == SHPLIB_NULLPTR )
954  return;
955 
956  if( pnEntities != SHPLIB_NULLPTR )
957  *pnEntities = psSHP->nRecords;
958 
959  if( pnShapeType != SHPLIB_NULLPTR )
960  *pnShapeType = psSHP->nShapeType;
961 
962  for( i = 0; i < 4; i++ )
963  {
964  if( padfMinBound != SHPLIB_NULLPTR )
965  padfMinBound[i] = psSHP->adBoundsMin[i];
966  if( padfMaxBound != SHPLIB_NULLPTR )
967  padfMaxBound[i] = psSHP->adBoundsMax[i];
968  }
969 }
#define SHPLIB_NULLPTR
Definition: shpopen.c:101
int nShapeType
Definition: shapefil.h:320
double adBoundsMin[4]
Definition: shapefil.h:329
int nRecords
Definition: shapefil.h:324
double adBoundsMax[4]
Definition: shapefil.h:330

References SHPInfo::adBoundsMax, SHPInfo::adBoundsMin, SHPInfo::nRecords, SHPInfo::nShapeType, and SHPLIB_NULLPTR.

Referenced by ShpLoaderOpenShape().

Here is the caller graph for this function: