PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ check_dimension()

static void check_dimension ( char *  ewkt,
int  dim 
)
static

Definition at line 373 of file cu_surface.c.

374 {
375  LWGEOM *geom;
376 
378  CU_ASSERT_EQUAL(strlen(cu_error_msg), 0);
379  CU_ASSERT_EQUAL(lwgeom_dimensionality(geom), dim);
380  lwgeom_free(geom);
381 }
char cu_error_msg[MAX_CUNIT_ERROR_LENGTH+1]
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2005
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
int lwgeom_dimensionality(const LWGEOM *geom)
Return the dimensionality (relating to point/line/poly) of an lwgeom.
Definition: lwgeom.c:1458

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

Referenced by surface_dimension().

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