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

References LWDEBUGF, LWLINE::points, and ptarray_to_twkb_buf().

Referenced by lwgeom_to_twkb_buf().

231 {
232  LWDEBUGF(2, "Entered %s", __func__);
233 
234  /* Set the coordinates (do write npoints) */
235  ptarray_to_twkb_buf(line->points, globals, ts, 1, 2);
236  return 0;
237 }
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
POINTARRAY * points
Definition: liblwgeom.h:406
Here is the call graph for this function:
Here is the caller graph for this function: