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

Definition at line 213 of file cu_in_wkt.c.

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

Referenced by wkt_in_suite_setup().

214 {
215  s = "SRID=5;GEOMETRYCOLLECTION(POINT(0 0),LINESTRING(1 0,0 0),CIRCULARSTRING(0 0,0 1,1 1,0 1,2 2))";
217  //printf("\nIN: %s\nOUT: %s\n",s,r);
218  CU_ASSERT_STRING_EQUAL(r,s);
219  lwfree(r);
220 
221  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))";
222  r = cu_wkt_in(s, WKT_SFSQL);
223  //printf("\nIN: %s\nOUT: %s\n",s,r);
224  CU_ASSERT_STRING_EQUAL(r,s);
225  lwfree(r);
226 
227  s = "GEOMETRYCOLLECTION Z (POINT Z (0 0 0))";
228  r = cu_wkt_in(s, WKT_ISO);
229  //printf("\nIN: %s\nOUT: %s\n",s,r);
230  CU_ASSERT_STRING_EQUAL(r,s);
231  lwfree(r);
232 
233  s = "GEOMETRYCOLLECTION M (MULTILINESTRING M ((0 0 5,2 0 5),(1 1 5,2 2 5)))";
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  /* See http://trac.osgeo.org/postgis/ticket/1455#comment:3 */
240  s = "GEOMETRYCOLLECTION Z (MULTILINESTRING Z ((0 0 5,2 0 5),(1 1 5,2 2 5)))";
241  r = cu_wkt_in(s, WKT_ISO);
242  //printf("\nIN: %s\nOUT: %s\n",s,r);
243  CU_ASSERT_STRING_EQUAL(r,s);
244  lwfree(r);
245 }
char * r
Definition: cu_in_wkt.c:25
void lwfree(void *mem)
Definition: lwutil.c:190
#define WKT_ISO
Definition: liblwgeom.h:1776
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: