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

◆ SHPSetFastModeReadObject()

void SHPAPI_CALL SHPSetFastModeReadObject ( SHPHandle  hSHP,
int  bFastMode 
)

Definition at line 926 of file shpopen.c.

927{
928 if( bFastMode )
929 {
930 if( hSHP->psCachedObject == SHPLIB_NULLPTR )
931 {
932 hSHP->psCachedObject = STATIC_CAST(SHPObject*, calloc(1, sizeof(SHPObject)));
933 assert( hSHP->psCachedObject != SHPLIB_NULLPTR );
934 }
935 }
936
937 hSHP->bFastModeReadObject = bFastMode;
938}
#define STATIC_CAST(type, x)
Definition shpopen.c:100
#define SHPLIB_NULLPTR
Definition shpopen.c:101
SHPObject * psCachedObject
Definition shapefil.h:340
int bFastModeReadObject
Definition shapefil.h:337

References SHPInfo::bFastModeReadObject, SHPInfo::psCachedObject, SHPLIB_NULLPTR, and STATIC_CAST.