745{
746 uint8_t *loc;
749
750 assert(point);
751 assert(buf);
752
754 lwerror(
"Dimensions mismatch in lwpoint");
755
756 LWDEBUGF(2,
"%s (%p, %p) called", __func__, point, buf);
757
758 loc = buf;
759
760
761 memcpy(loc, &type, sizeof(uint32_t));
762 loc += sizeof(uint32_t);
763
764 memcpy(loc, &(point->
point->
npoints),
sizeof(uint32_t));
765 loc += sizeof(uint32_t);
766
767
769 {
771 loc += ptsize;
772 }
773
774 return (size_t)(loc - buf);
775}
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define FLAGS_GET_ZM(flags)
#define LWDEBUGF(level, msg,...)
void void lwerror(const char *fmt,...) __attribute__((format(printf
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)