PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwpoint_to_twkb_buf()

static int lwpoint_to_twkb_buf ( const LWPOINT pt,
TWKB_GLOBALS globals,
TWKB_STATE ts 
)
static

Definition at line 236 of file lwout_twkb.c.

237 {
238  LWDEBUGF(2, "Entered %s", __func__);
239 
240  /* Set the coordinates (don't write npoints) */
241  ptarray_to_twkb_buf(pt->point, globals, ts, 0, 1);
242  return 0;
243 }
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:88
static int ptarray_to_twkb_buf(const POINTARRAY *pa, TWKB_GLOBALS *globals, TWKB_STATE *ts, int register_npoints, uint32_t minpoints)
Stores a pointarray as varints in the buffer @register_npoints, controls whether an npoints entry is ...
Definition: lwout_twkb.c:107
POINTARRAY * point
Definition: liblwgeom.h:457

References LWDEBUGF, LWPOINT::point, and ptarray_to_twkb_buf().

Referenced by lwgeom_to_twkb_buf().

Here is the call graph for this function:
Here is the caller graph for this function: