PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ _SHPSetBounds()

static void _SHPSetBounds ( uchar pabyRec,
SHPObject psShape 
)
static

Definition at line 974 of file shpopen.c.

References ByteCopy, SHPObject::dfXMax, SHPObject::dfXMin, SHPObject::dfYMax, SHPObject::dfYMin, SHPAPI_CALL, and SwapWord().

Referenced by SHPWriteObject().

976 {
977  ByteCopy( &(psShape->dfXMin), pabyRec + 0, 8 );
978  ByteCopy( &(psShape->dfYMin), pabyRec + 8, 8 );
979  ByteCopy( &(psShape->dfXMax), pabyRec + 16, 8 );
980  ByteCopy( &(psShape->dfYMax), pabyRec + 24, 8 );
981 
982  if( bBigEndian )
983  {
984  SwapWord( 8, pabyRec + 0 );
985  SwapWord( 8, pabyRec + 8 );
986  SwapWord( 8, pabyRec + 16 );
987  SwapWord( 8, pabyRec + 24 );
988  }
989 }
#define ByteCopy(a, b, c)
Definition: shpopen.c:281
double dfYMin
Definition: shapefil.h:355
double dfXMax
Definition: shapefil.h:359
double dfXMin
Definition: shapefil.h:354
static int bBigEndian
Definition: shpopen.c:293
double dfYMax
Definition: shapefil.h:360
static void SwapWord(int length, void *wordP)
Definition: shpopen.c:302
Here is the call graph for this function:
Here is the caller graph for this function: