Definition at line 865 of file g_serialized.c.
References POINTARRAY::flags, LWLINE::flags, FLAGS_GET_Z, getPoint_internal(), LINETYPE, LWDEBUGF, lwerror(), POINTARRAY::npoints, LWLINE::points, ptarray_point_size(), and ovdump::type.
Referenced by gserialized_from_lwgeom_any().
875 LWDEBUGF(2,
"lwline_to_gserialized(%p, %p) called", line, buf);
878 lwerror(
"Dimensions mismatch in lwline");
885 memcpy(loc, &type,
sizeof(
uint32_t));
901 LWDEBUGF(3,
"lwline_to_gserialized copied serialized_pointlist (%d bytes)", ptsize * line->
points->
npoints);
903 return (
size_t)(loc - buf);
uint8_t * getPoint_internal(const POINTARRAY *pa, int n)
int ptarray_point_size(const POINTARRAY *pa)
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.