PostGIS  2.4.9dev-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 235 of file lwout_twkb.c.

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

Referenced by lwgeom_to_twkb_buf().

236 {
237  LWDEBUGF(2, "Entered %s", __func__);
238 
239  /* Set the coordinates (don't write npoints) */
240  ptarray_to_twkb_buf(pt->point, globals, ts, 0, 1);
241  return 0;
242 }
POINTARRAY * point
Definition: liblwgeom.h:411
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:106
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:88
Here is the call graph for this function:
Here is the caller graph for this function: