PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwpoint_from_twkb_state()

static LWPOINT* lwpoint_from_twkb_state ( twkb_parse_state s)
static

POINT.

Definition at line 221 of file lwin_twkb.c.

222 {
223  static uint32_t npoints = 1;
224  POINTARRAY *pa;
225 
226  LWDEBUG(2,"Entering lwpoint_from_twkb_state");
227 
228  if ( s->is_empty )
229  return lwpoint_construct_empty(SRID_UNKNOWN, s->has_z, s->has_m);
230 
231  pa = ptarray_from_twkb_state(s, npoints);
232  return lwpoint_construct(SRID_UNKNOWN, NULL, pa);
233 }
char * s
Definition: cu_in_wkt.c:23
LWPOINT * lwpoint_construct(int srid, GBOX *bbox, POINTARRAY *point)
Definition: lwpoint.c:129
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:188
LWPOINT * lwpoint_construct_empty(int srid, char hasz, char hasm)
Definition: lwpoint.c:151
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:83
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:172
unsigned int uint32_t
Definition: uthash.h:78

References LWDEBUG, lwpoint_construct(), lwpoint_construct_empty(), ptarray_from_twkb_state(), s, and SRID_UNKNOWN.

Referenced by lwgeom_from_twkb_state(), and lwmultipoint_from_twkb_state().

Here is the call graph for this function:
Here is the caller graph for this function: