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

◆ _SHPSetBounds()

static void _SHPSetBounds ( uchar pabyRec,
SHPObject psShape 
)
static

Definition at line 1147 of file shpopen.c.

1149{
1150 ByteCopy( &(psShape->dfXMin), pabyRec + 0, 8 );
1151 ByteCopy( &(psShape->dfYMin), pabyRec + 8, 8 );
1152 ByteCopy( &(psShape->dfXMax), pabyRec + 16, 8 );
1153 ByteCopy( &(psShape->dfYMax), pabyRec + 24, 8 );
1154
1155 if( bBigEndian )
1156 {
1157 SwapWord( 8, pabyRec + 0 );
1158 SwapWord( 8, pabyRec + 8 );
1159 SwapWord( 8, pabyRec + 16 );
1160 SwapWord( 8, pabyRec + 24 );
1161 }
1162}
static int bBigEndian
Definition shpopen.c:93
else psShape
Definition shpopen.c:2066
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: