PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ test_wkt_in_multipolygon()

static void test_wkt_in_multipolygon ( void  )
static

Definition at line 199 of file cu_in_wkt.c.

200 {
201  s = "MULTIPOLYGON(((0 0,0 1,1 1,0 0)))";
202  r = cu_wkt_in(s, WKT_SFSQL);
203  CU_ASSERT_STRING_EQUAL(r,s);
204  //printf("\nIN: %s\nOUT: %s\n",s,r);
205  lwfree(r);
206 
207  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)))";
208  r = cu_wkt_in(s, WKT_SFSQL);
209  CU_ASSERT_STRING_EQUAL(r,s);
210  //printf("\nIN: %s\nOUT: %s\n",s,r);
211  lwfree(r);
212 
213  s = "SRID=4;MULTIPOLYGON(((0 0,0 1,1 1,0 0)))";
215  CU_ASSERT_STRING_EQUAL(r,s);
216  //printf("\nIN: %s\nOUT: %s\n",s,r);
217  lwfree(r);
218 
219 }
char * s
Definition: cu_in_wkt.c:23
char * r
Definition: cu_in_wkt.c:24
static char * cu_wkt_in(char *wkt, uint8_t variant)
Definition: cu_in_wkt.c:50
#define WKT_SFSQL
Definition: liblwgeom.h:2131
#define WKT_EXTENDED
Definition: liblwgeom.h:2132
void lwfree(void *mem)
Definition: lwutil.c:242

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

Referenced by wkt_in_suite_setup().

Here is the call graph for this function:
Here is the caller graph for this function: