835{
836 uint8_t *loc;
839
840 assert(point);
841 assert(buf);
842
844 lwerror(
"Dimensions mismatch in lwpoint");
845
846 LWDEBUGF(2,
"%s (%p, %p) called", __func__, point, buf);
847
848 loc = buf;
849
850
851 memcpy(loc, &type, sizeof(uint32_t));
852 loc += sizeof(uint32_t);
853
854 memcpy(loc, &(point->
point->
npoints),
sizeof(uint32_t));
855 loc += sizeof(uint32_t);
856
857
859 {
861 loc += ptsize;
862 }
863
864 return (size_t)(loc - buf);
865}
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define FLAGS_GET_ZM(flags)
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static uint8_t * getPoint_internal(const POINTARRAY *pa, uint32_t n)
static size_t ptarray_point_size(const POINTARRAY *pa)