PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ SHPGetInfo()

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

Definition at line 949 of file shpopen.c.

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

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

Referenced by ShpLoaderOpenShape().

Here is the caller graph for this function: