PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ SHPSetFastModeReadObject()

void SHPAPI_CALL SHPSetFastModeReadObject ( SHPHandle  hSHP,
int  bFastMode 
)

Definition at line 935 of file shpopen.c.

936 {
937  if( bFastMode )
938  {
939  if( hSHP->psCachedObject == SHPLIB_NULLPTR )
940  {
941  hSHP->psCachedObject = STATIC_CAST(SHPObject*, calloc(1, sizeof(SHPObject)));
942  assert( hSHP->psCachedObject != SHPLIB_NULLPTR );
943  }
944  }
945 
946  hSHP->bFastModeReadObject = bFastMode;
947 }
#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.