PostGIS  2.1.10dev-r@@SVN_REVISION@@
void SHPAPI_CALL SHPGetInfo ( SHPHandle  psSHP,
int *  pnEntities,
int *  pnShapeType,
double *  padfMinBound,
double *  padfMaxBound 
)

Definition at line 797 of file shpopen.c.

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

Referenced by ShpLoaderOpenShape().

800 {
801  int i;
802 
803  if( psSHP == NULL )
804  return;
805 
806  if( pnEntities != NULL )
807  *pnEntities = psSHP->nRecords;
808 
809  if( pnShapeType != NULL )
810  *pnShapeType = psSHP->nShapeType;
811 
812  for( i = 0; i < 4; i++ )
813  {
814  if( padfMinBound != NULL )
815  padfMinBound[i] = psSHP->adBoundsMin[i];
816  if( padfMaxBound != NULL )
817  padfMaxBound[i] = psSHP->adBoundsMax[i];
818  }
819 }
double adBoundsMin[4]
Definition: shapefil.h:293
int nRecords
Definition: shapefil.h:288
double adBoundsMax[4]
Definition: shapefil.h:294
int nShapeType
Definition: shapefil.h:284

Here is the caller graph for this function: