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

◆ _SHPSetBounds()

static void _SHPSetBounds ( uchar pabyRec,
SHPObject psShape 
)
static

Definition at line 1136 of file shpopen.c.

1138{
1139 ByteCopy( &(psShape->dfXMin), pabyRec + 0, 8 );
1140 ByteCopy( &(psShape->dfYMin), pabyRec + 8, 8 );
1141 ByteCopy( &(psShape->dfXMax), pabyRec + 16, 8 );
1142 ByteCopy( &(psShape->dfYMax), pabyRec + 24, 8 );
1143
1144 if( bBigEndian )
1145 {
1146 SwapWord( 8, pabyRec + 0 );
1147 SwapWord( 8, pabyRec + 8 );
1148 SwapWord( 8, pabyRec + 16 );
1149 SwapWord( 8, pabyRec + 24 );
1150 }
1151}
static int bBigEndian
Definition shpopen.c:93
else psShape
Definition shpopen.c:2055
static void SwapWord(int length, void *wordP)
Definition shpopen.c:110
#define ByteCopy(a, b, c)
Definition shpopen.c:62

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: