PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ SHPGetInfo()

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

Definition at line 956 of file shpopen.c.

959 {
960  int i;
961 
962  if( psSHP == SHPLIB_NULLPTR )
963  return;
964 
965  if( pnEntities != SHPLIB_NULLPTR )
966  *pnEntities = psSHP->nRecords;
967 
968  if( pnShapeType != SHPLIB_NULLPTR )
969  *pnShapeType = psSHP->nShapeType;
970 
971  for( i = 0; i < 4; i++ )
972  {
973  if( padfMinBound != SHPLIB_NULLPTR )
974  padfMinBound[i] = psSHP->adBoundsMin[i];
975  if( padfMaxBound != SHPLIB_NULLPTR )
976  padfMaxBound[i] = psSHP->adBoundsMax[i];
977  }
978 }
#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: