PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ SHPGetInfo()

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

Definition at line 796 of file shpopen.c.

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

Referenced by ShpLoaderOpenShape().

799 {
800  int i;
801 
802  if( psSHP == NULL )
803  return;
804 
805  if( pnEntities != NULL )
806  *pnEntities = psSHP->nRecords;
807 
808  if( pnShapeType != NULL )
809  *pnShapeType = psSHP->nShapeType;
810 
811  for( i = 0; i < 4; i++ )
812  {
813  if( padfMinBound != NULL )
814  padfMinBound[i] = psSHP->adBoundsMin[i];
815  if( padfMaxBound != NULL )
816  padfMaxBound[i] = psSHP->adBoundsMax[i];
817  }
818 }
double adBoundsMin[4]
Definition: shapefil.h:292
int nRecords
Definition: shapefil.h:287
double adBoundsMax[4]
Definition: shapefil.h:293
int nShapeType
Definition: shapefil.h:283
Here is the caller graph for this function: