Definition at line 371 of file lwout_wkb.c.
References double_to_wkb_buf(), POINTARRAY::flags, FLAGS_NDIMS, getPoint_internal(), integer_to_wkb_buf(), LWDEBUGF, POINTARRAY::npoints, WKB_DOUBLE_SIZE, WKB_EXTENDED, WKB_HEX, WKB_ISO, WKB_NO_NPOINTS, and wkb_swap_bytes().
Referenced by lwline_to_wkb_buf(), lwpoint_to_wkb_buf(), lwpoly_to_wkb_buf(), and lwtriangle_to_wkb_buf().
397 for ( i = 0; i < pa->
npoints; i++ )
399 LWDEBUGF(4,
"Writing point #%d", i);
401 for ( j = 0; j < dims; j++ )
403 LWDEBUGF(4,
"Writing dimension #%d (buf = %p)", j, buf);
408 LWDEBUGF(4,
"Done (buf = %p)", buf);
#define WKB_DOUBLE_SIZE
Well-Known Binary (WKB) Output Variant Types.
static uint8_t * integer_to_wkb_buf(const int ival, uint8_t *buf, uint8_t variant)
uint8_t * getPoint_internal(const POINTARRAY *pa, int n)
static int wkb_swap_bytes(uint8_t variant)
static uint8_t * double_to_wkb_buf(const double d, uint8_t *buf, uint8_t variant)
#define LWDEBUGF(level, msg,...)
#define FLAGS_NDIMS(flags)