PostGIS  2.5.1dev-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 244 of file lwout_twkb.c.

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

Referenced by lwgeom_to_twkb_buf().

245 {
246  LWDEBUGF(2, "Entered %s", __func__);
247 
248  /* Set the coordinates (do write npoints) */
249  ptarray_to_twkb_buf(line->points, globals, ts, 1, 2);
250  return 0;
251 }
#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 , controls whether an npoints entry is added to the buff...
Definition: lwout_twkb.c:106
POINTARRAY * points
Definition: liblwgeom.h:424
Here is the call graph for this function:
Here is the caller graph for this function: