PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void check_dimension ( char *  ewkt,
int  dim 
)
static

Definition at line 374 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().

375 {
376  LWGEOM *geom;
377 
379  CU_ASSERT_EQUAL(strlen(cu_error_msg), 0);
380  CU_ASSERT_EQUAL(lwgeom_dimensionality(geom), dim);
381  lwgeom_free(geom);
382 }
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1006
int lwgeom_dimensionality(LWGEOM *geom)
Return the dimensionality (relating to point/line/poly) of an lwgeom.
Definition: lwgeom.c:1294
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:844
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:1706
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: