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

◆ _SHPSetBounds()

static void _SHPSetBounds ( uchar pabyRec,
SHPObject psShape 
)
static

Definition at line 974 of file shpopen.c.

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}
static int bBigEndian
Definition shpopen.c:293
static void SwapWord(int length, void *wordP)
Definition shpopen.c:302
psShape
Definition shpopen.c:1643
#define ByteCopy(a, b, c)
Definition shpopen.c:281

References bBigEndian, ByteCopy, psShape, and SwapWord().

Referenced by SHPWriteObject().

Here is the call graph for this function:
Here is the caller graph for this function: