PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void test_wkt_in_polyhedralsurface ( void  )
static

Definition at line 307 of file cu_in_wkt.c.

References cu_wkt_in(), lwfree(), r, s, WKT_EXTENDED, and WKT_ISO.

Referenced by wkt_in_suite_setup().

308 {
309  s = "POLYHEDRALSURFACE(((0 0 0,0 0 1,0 1 0,0 0 0)),((0 0 0,0 1 0,1 0 0,0 0 0)),((0 0 0,1 0 0,0 0 1,0 0 0)),((1 0 0,0 1 0,0 0 1,1 0 0)))";
311  CU_ASSERT_STRING_EQUAL(r,s);
312  //printf("\nIN: %s\nOUT: %s\n",s,r);
313  lwfree(r);
314 
315  s = "POLYHEDRALSURFACE Z (((0 0 0,0 0 1,0 1 0,0 0 0)),((0 0 0,0 1 0,1 0 0,0 0 0)),((0 0 0,1 0 0,0 0 1,0 0 0)),((1 0 0,0 1 0,0 0 1,1 0 0)))";
316  r = cu_wkt_in(s, WKT_ISO);
317  CU_ASSERT_STRING_EQUAL(r,s);
318  //printf("\nIN: %s\nOUT: %s\n",s,r);
319  lwfree(r);
320 
321  s = "POLYHEDRALSURFACE(((0 1 2,3 4 5,6 7,0 1 2)))";
322  r = cu_wkt_in(s, WKT_ISO);
323  CU_ASSERT_STRING_EQUAL(r,"can not mix dimensionality in a geometry");
324  //printf("\nIN: %s\nOUT: %s\n",s,r);
325  lwfree(r);
326 
327 }
char * r
Definition: cu_in_wkt.c:25
void lwfree(void *mem)
Definition: lwutil.c:190
#define WKT_ISO
Definition: liblwgeom.h:1776
char * s
Definition: cu_in_wkt.c:24
#define WKT_EXTENDED
Definition: liblwgeom.h:1778
static char * cu_wkt_in(char *wkt, uint8_t variant)
Definition: cu_in_wkt.c:51

Here is the call graph for this function:

Here is the caller graph for this function: