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

Definition at line 137 of file cu_in_wkt.c.

References cu_wkt_in(), lwfree(), r, s, and WKT_SFSQL.

Referenced by wkt_in_suite_setup().

138 {
139  s = "POLYGON((0 0,0 1,1 1,0 0))";
140  r = cu_wkt_in(s, WKT_SFSQL);
141  CU_ASSERT_STRING_EQUAL(r,s);
142  lwfree(r);
143 
144  s = "POLYGON Z ((0 0,0 10,10 10,10 0,0 0),(1 1 1,1 2 1,2 2 1,2 1 1,1 1 1))";
145  r = cu_wkt_in(s, WKT_SFSQL);
146  CU_ASSERT_STRING_EQUAL(r,"can not mix dimensionality in a geometry");
147  lwfree(r);
148 
149  s = "POLYGON Z ((0 0,0 10,10 10,10 0,0 0),(1 1,1 2,2 2,2 1,1 1))";
150  r = cu_wkt_in(s, WKT_SFSQL);
151  CU_ASSERT_STRING_EQUAL(r,"can not mix dimensionality in a geometry");
152  //printf("\nIN: %s\nOUT: %s\n",s,r);
153  lwfree(r);
154 }
char * r
Definition: cu_in_wkt.c:25
void lwfree(void *mem)
Definition: lwutil.c:190
char * s
Definition: cu_in_wkt.c:24
#define WKT_SFSQL
Definition: liblwgeom.h:1777
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: