PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ SHPGetInfo()

void SHPAPI_CALL SHPGetInfo ( SHPHandle  psSHP,
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}
int nShapeType
Definition shapefil.h:283
double adBoundsMin[4]
Definition shapefil.h:292
int nRecords
Definition shapefil.h:287
double adBoundsMax[4]
Definition shapefil.h:293

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

Referenced by ShpLoaderOpenShape().

Here is the caller graph for this function: