PostGIS  2.3.7dev-r@@SVN_REVISION@@

◆ cu_wkb_empty_point_check()

static void cu_wkb_empty_point_check ( char *  hex)

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:1063
Definition: liblwgeom.h:1985
LWGEOM * lwgeom_from_hexwkb(const char *hexwkb, const char check)
Definition: lwin_wkb.c:790
LWTYPE numbers, used internally by PostGIS.
Definition: liblwgeom.h:84
uint8_t type
Definition: liblwgeom.h:395
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:1310
Here is the call graph for this function:
Here is the caller graph for this function: