PostGIS  2.4.9dev-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.

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

Referenced by lwgeom_to_twkb_buf().

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 }
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
POINTARRAY * points
Definition: liblwgeom.h:422
Here is the call graph for this function:
Here is the caller graph for this function: