PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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(int32_t srid, GBOX *bbox, POINTARRAY *point)
Definition lwpoint.c:129
LWPOINT * lwpoint_construct_empty(int32_t srid, char hasz, char hasm)
Definition lwpoint.c:151
#define SRID_UNKNOWN
Unknown SRID value.
Definition liblwgeom.h:215
#define LWDEBUG(level, msg)
Definition lwgeom_log.h:101
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

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: