PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ test_wkt_in_polygon()

static void test_wkt_in_polygon ( void  )
static

Definition at line 159 of file cu_in_wkt.c.

160 {
161  s = "POLYGON((0 0,0 1,1 1,0 0))";
162  r = cu_wkt_in(s, WKT_SFSQL);
163  CU_ASSERT_STRING_EQUAL(r,s);
164  lwfree(r);
165 
166  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))";
167  r = cu_wkt_in(s, WKT_SFSQL);
168  CU_ASSERT_STRING_EQUAL(r,"can not mix dimensionality in a geometry");
169  lwfree(r);
170 
171  s = "POLYGON Z ((0 0,0 10,10 10,10 0,0 0),(1 1,1 2,2 2,2 1,1 1))";
172  r = cu_wkt_in(s, WKT_SFSQL);
173  CU_ASSERT_STRING_EQUAL(r,"can not mix dimensionality in a geometry");
174  //printf("\nIN: %s\nOUT: %s\n",s,r);
175  lwfree(r);
176 }
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:2185
void lwfree(void *mem)
Definition: lwutil.c:242

References cu_wkt_in(), lwfree(), r, s, 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: