PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ test_wkt_in_multipolygon()

static void test_wkt_in_multipolygon ( void  )
static

Definition at line 197 of file cu_in_wkt.c.

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

Referenced by wkt_in_suite_setup().

198 {
199  s = "MULTIPOLYGON(((0 0,0 1,1 1,0 0)))";
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 = "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)))";
206  r = cu_wkt_in(s, WKT_SFSQL);
207  CU_ASSERT_STRING_EQUAL(r,s);
208  //printf("\nIN: %s\nOUT: %s\n",s,r);
209  lwfree(r);
210 
211  s = "SRID=4;MULTIPOLYGON(((0 0,0 1,1 1,0 0)))";
213  CU_ASSERT_STRING_EQUAL(r,s);
214  //printf("\nIN: %s\nOUT: %s\n",s,r);
215  lwfree(r);
216 
217 }
char * r
Definition: cu_in_wkt.c:24
void lwfree(void *mem)
Definition: lwutil.c:244
char * s
Definition: cu_in_wkt.c:23
#define WKT_EXTENDED
Definition: liblwgeom.h:2085
#define WKT_SFSQL
Definition: liblwgeom.h:2084
static char * cu_wkt_in(char *wkt, uint8_t variant)
Definition: cu_in_wkt.c:50
Here is the call graph for this function:
Here is the caller graph for this function: