PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwpoint_from_twkb_state()

static LWPOINT* lwpoint_from_twkb_state ( twkb_parse_state s)


Definition at line 207 of file lwin_twkb.c.

References twkb_parse_state::has_m, twkb_parse_state::has_z, twkb_parse_state::is_empty, LWDEBUG, lwpoint_construct(), lwpoint_construct_empty(), ptarray_from_twkb_state(), and SRID_UNKNOWN.

Referenced by lwgeom_from_twkb_state(), and lwmultipoint_from_twkb_state().

208 {
209  static uint32_t npoints = 1;
210  POINTARRAY *pa;
212  LWDEBUG(2,"Entering lwpoint_from_twkb_state");
214  if ( s->is_empty )
217  pa = ptarray_from_twkb_state(s, npoints);
218  return lwpoint_construct(SRID_UNKNOWN, NULL, pa);
219 }
uint8_t has_z
Definition: lwin_twkb.c:35
uint8_t is_empty
Definition: lwin_twkb.c:37
uint8_t has_m
Definition: lwin_twkb.c:36
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:50
static POINTARRAY * ptarray_from_twkb_state(twkb_parse_state *s, uint32_t npoints)
POINTARRAY Read a dynamically sized point array and advance the parse state forward.
Definition: lwin_twkb.c:158
LWPOINT * lwpoint_construct_empty(int srid, char hasz, char hasm)
Definition: lwpoint.c:120
Unknown SRID value.
Definition: liblwgeom.h:172
LWPOINT * lwpoint_construct(int srid, GBOX *bbox, POINTARRAY *point)
Definition: lwpoint.c:98
Here is the call graph for this function:
Here is the caller graph for this function: