PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ test_wkt_in_collection()

static void test_wkt_in_collection ( void  )
static

Definition at line 219 of file cu_in_wkt.c.

220 {
221  s = "SRID=5;GEOMETRYCOLLECTION(POINT(0 0),LINESTRING(1 0,0 0),CIRCULARSTRING(0 0,0 1,1 1,0 1,2 2))";
223  //printf("\nIN: %s\nOUT: %s\n",s,r);
224  CU_ASSERT_STRING_EQUAL(r,s);
225  lwfree(r);
226 
227  s = "GEOMETRYCOLLECTION(POINT(0 0),POINT EMPTY,LINESTRING(1 0,0 0),POLYGON EMPTY,CIRCULARSTRING(0 0,0 1,1 1,0 1,2 2))";
228  r = cu_wkt_in(s, WKT_SFSQL);
229  //printf("\nIN: %s\nOUT: %s\n",s,r);
230  CU_ASSERT_STRING_EQUAL(r,s);
231  lwfree(r);
232 
233  s = "GEOMETRYCOLLECTION Z (POINT Z (0 0 0))";
234  r = cu_wkt_in(s, WKT_ISO);
235  //printf("\nIN: %s\nOUT: %s\n",s,r);
236  CU_ASSERT_STRING_EQUAL(r,s);
237  lwfree(r);
238 
239  s = "GEOMETRYCOLLECTION M (MULTILINESTRING M ((0 0 5,2 0 5),(1 1 5,2 2 5)))";
240  r = cu_wkt_in(s, WKT_ISO);
241  //printf("\nIN: %s\nOUT: %s\n",s,r);
242  CU_ASSERT_STRING_EQUAL(r,s);
243  lwfree(r);
244 
245  /* See http://trac.osgeo.org/postgis/ticket/1455#comment:3 */
246  s = "GEOMETRYCOLLECTION Z (MULTILINESTRING Z ((0 0 5,2 0 5),(1 1 5,2 2 5)))";
247  r = cu_wkt_in(s, WKT_ISO);
248  //printf("\nIN: %s\nOUT: %s\n",s,r);
249  CU_ASSERT_STRING_EQUAL(r,s);
250  lwfree(r);
251 }
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:2076
#define WKT_EXTENDED
Definition: liblwgeom.h:2077
void lwfree(void *mem)
Definition: lwutil.c:244
#define WKT_ISO
Definition: liblwgeom.h:2075

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