PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwline_to_twkb_buf()

static int lwline_to_twkb_buf ( const LWLINE line,
TWKB_GLOBALS globals,
TWKB_STATE ts 
)
static

Definition at line 248 of file lwout_twkb.c.

249 {
250  LWDEBUGF(2, "Entered %s", __func__);
251 
252  /* Set the coordinates (do write npoints) */
253  ptarray_to_twkb_buf(line->points, globals, ts, 1, 2);
254  return 0;
255 }
#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:106
POINTARRAY * points
Definition: liblwgeom.h:425

References LWDEBUGF, LWLINE::points, 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: