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

◆ cu_wkb_empty_point_check()

static void cu_wkb_empty_point_check ( char *  hex)
static

Definition at line 68 of file cu_out_wkb.c.

69{
70 LWGEOM *g;
72 CU_ASSERT(g != NULL);
73 CU_ASSERT(lwgeom_is_empty(g));
74 CU_ASSERT(g->type == POINTTYPE);
75 lwgeom_free(g);
76}
void lwgeom_free(LWGEOM *geom)
Definition lwgeom.c:1246
#define LW_PARSER_CHECK_NONE
Definition liblwgeom.h:2149
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
Definition liblwgeom.h:102
LWGEOM * lwgeom_from_hexwkb(const char *hexwkb, const char check)
Definition lwin_wkb.c:866
static int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
Definition lwinline.h:199
uint8_t type
Definition liblwgeom.h:462

References LW_PARSER_CHECK_NONE, lwgeom_free(), lwgeom_from_hexwkb(), lwgeom_is_empty(), POINTTYPE, and LWGEOM::type.

Referenced by test_wkb_out_point().

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