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

Definition at line 191 of file cu_in_wkt.c.

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

Referenced by wkt_in_suite_setup().

192 {
193  s = "MULTIPOLYGON(((0 0,0 1,1 1,0 0)))";
194  r = cu_wkt_in(s, WKT_SFSQL);
195  CU_ASSERT_STRING_EQUAL(r,s);
196  //printf("\nIN: %s\nOUT: %s\n",s,r);
197  lwfree(r);
198 
199  s = "MULTIPOLYGON(((0 0,0 10,10 10,0 0),(1 1,1 2,2 2,1 1)),((-10 -10,-10 -5,-5 -5,-10 -10)))";
200  r = cu_wkt_in(s, WKT_SFSQL);
201  CU_ASSERT_STRING_EQUAL(r,s);
202  //printf("\nIN: %s\nOUT: %s\n",s,r);
203  lwfree(r);
204 
205  s = "SRID=4;MULTIPOLYGON(((0 0,0 1,1 1,0 0)))";
207  CU_ASSERT_STRING_EQUAL(r,s);
208  //printf("\nIN: %s\nOUT: %s\n",s,r);
209  lwfree(r);
210 
211 }
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_EXTENDED
Definition: liblwgeom.h:1778
#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: