PostGIS  2.5.7dev-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.

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 }
LWGEOM * lwgeom_from_hexwkb(const char *hexwkb, const char check)
Definition: lwin_wkb.c:809
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2005
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
Definition: liblwgeom.h:85
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:1393
uint8_t type
Definition: liblwgeom.h:399

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: