805{
806 uint8_t *loc;
809
810 assert(point);
811 assert(buf);
812
814 lwerror(
"Dimensions mismatch in lwpoint");
815
816 LWDEBUGF(2,
"%s (%p, %p) called", __func__, point, buf);
817
818 loc = buf;
819
820
821 memcpy(loc, &type, sizeof(uint32_t));
822 loc += sizeof(uint32_t);
823
824 memcpy(loc, &(point->
point->
npoints),
sizeof(uint32_t));
825 loc += sizeof(uint32_t);
826
827
829 {
831 loc += ptsize;
832 }
833
834 return (size_t)(loc - buf);
835}
#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)