PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ SHPGetInfo()

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

Definition at line 796 of file shpopen.c.

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 }

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

Referenced by ShpLoaderOpenShape().

Here is the caller graph for this function: