Definition at line 960 of file g_serialized.c.
References POINTARRAY::flags, LWTRIANGLE::flags, FLAGS_GET_ZM, getPoint_internal(), LWDEBUGF, lwerror(), POINTARRAY::npoints, LWTRIANGLE::points, ptarray_point_size(), TRIANGLETYPE, and ovdump::type.
Referenced by gserialized_from_lwgeom_any().
970 LWDEBUGF(2,
"lwtriangle_to_gserialized(%p, %p) called", triangle, buf);
973 lwerror(
"Dimensions mismatch in lwtriangle");
980 memcpy(loc, &type,
sizeof(
uint32_t));
996 LWDEBUGF(3,
"lwtriangle_to_gserialized copied serialized_pointlist (%d bytes)", ptsize * triangle->
points->
npoints);
998 return (
size_t)(loc - buf);
#define FLAGS_GET_ZM(flags)
uint8_t * getPoint_internal(const POINTARRAY *pa, int n)
int ptarray_point_size(const POINTARRAY *pa)
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.