744{
745 uint8_t *loc;
748
749 assert(point);
750 assert(buf);
751
753 lwerror(
"Dimensions mismatch in lwpoint");
754
755 LWDEBUGF(2,
"%s (%p, %p) called", __func__, point, buf);
756
757 loc = buf;
758
759
760 memcpy(loc, &type, sizeof(uint32_t));
761 loc += sizeof(uint32_t);
762
763 memcpy(loc, &(point->
point->
npoints),
sizeof(uint32_t));
764 loc += sizeof(uint32_t);
765
766
768 {
770 loc += ptsize;
771 }
772
773 return (size_t)(loc - buf);
774}
#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)