Definition at line 832 of file g_serialized.c.
References POINTARRAY::flags, LWPOINT::flags, FLAGS_GET_ZM, getPoint_internal(), LWDEBUGF, lwerror(), POINTARRAY::npoints, LWPOINT::point, POINTTYPE, ptarray_point_size(), and ovdump::type.
Referenced by gserialized_from_lwgeom_any().
842 lwerror(
"Dimensions mismatch in lwpoint");
844 LWDEBUGF(2,
"lwpoint_to_gserialized(%p, %p) called", point, buf);
849 memcpy(loc, &type,
sizeof(
uint32_t));
862 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 POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.