PostGIS  2.2.8dev-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 217 of file lwout_twkb.c.

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

Referenced by lwgeom_to_twkb_buf().

218 {
219  LWDEBUGF(2, "Entered %s", __func__);
220 
221  /* Set the coordinates (don't write npoints) */
222  ptarray_to_twkb_buf(pt->point, globals, ts, 0, 1);
223  return 0;
224 }
POINTARRAY * point
Definition: liblwgeom.h:395
static int ptarray_to_twkb_buf(const POINTARRAY *pa, TWKB_GLOBALS *globals, TWKB_STATE *ts, int register_npoints, int minpoints)
Stores a pointarray as varints in the buffer , controls whether an npoints entry is added to the buff...
Definition: lwout_twkb.c:92
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:55
Here is the call graph for this function:
Here is the caller graph for this function: