PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ cu_wkb_empty_point_check()

static void cu_wkb_empty_point_check ( char *  hex)
static

Definition at line 69 of file cu_out_wkb.c.

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

Referenced by test_wkb_out_point().

70 {
71  LWGEOM *g;
73  CU_ASSERT(g != NULL);
74  CU_ASSERT(lwgeom_is_empty(g));
75  CU_ASSERT(g->type == POINTTYPE);
76  lwgeom_free(g);
77 }
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1099
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2013
LWGEOM * lwgeom_from_hexwkb(const char *hexwkb, const char check)
Definition: lwin_wkb.c:797
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
Definition: liblwgeom.h:85
uint8_t type
Definition: liblwgeom.h:396
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members) ...
Definition: lwgeom.c:1346
Here is the call graph for this function:
Here is the caller graph for this function: