PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ check_dimension()

static void check_dimension ( char *  ewkt,
int  dim 

Definition at line 373 of file cu_surface.c.

References cu_error_msg, LW_PARSER_CHECK_NONE, lwgeom_dimensionality(), lwgeom_free(), and lwgeom_from_wkt().

Referenced by surface_dimension().

374 {
375  LWGEOM *geom;
378  CU_ASSERT_EQUAL(strlen(cu_error_msg), 0);
379  CU_ASSERT_EQUAL(lwgeom_dimensionality(geom), dim);
380  lwgeom_free(geom);
381 }
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1099
int lwgeom_dimensionality(LWGEOM *geom)
Return the dimensionality (relating to point/line/poly) of an lwgeom.
Definition: lwgeom.c:1411
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
Definition: liblwgeom.h:2013
char cu_error_msg[MAX_CUNIT_ERROR_LENGTH+1]
Here is the call graph for this function:
Here is the caller graph for this function: