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

Definition at line 139 of file cu_out_wkt.c.

References cu_wkt(), WKT_EXTENDED, and WKT_ISO.

Referenced by wkt_out_suite_setup().

140 {
141  //printf("%s\n",cu_wkt("GEOMETRYCOLLECTION(MULTIPOLYGON(((100 100 2, 100 200 2, 200 200 2, 200 100 2, 100 100 2))),MULTIPOINT(.5 .5 .5,1 1 1),CURVEPOLYGON((.8 .8 .8,.8 .8 .8,.8 .8 .8)))",WKT_ISO));
142  CU_ASSERT_STRING_EQUAL(
143  cu_wkt("GEOMETRYCOLLECTION(POLYGON((100 100 2, 100 200 2, 200 200 2, 200 100 2, 100 100 2)),POINT(.5 .5 .5),CIRCULARSTRING(.8 .8 .8,.8 .8 .8,.8 .8 .8))",WKT_ISO),
144  "GEOMETRYCOLLECTION Z (POLYGON Z ((100 100 2,100 200 2,200 200 2,200 100 2,100 100 2)),POINT Z (0.5 0.5 0.5),CIRCULARSTRING Z (0.8 0.8 0.8,0.8 0.8 0.8,0.8 0.8 0.8))"
145  );
146  CU_ASSERT_STRING_EQUAL(
147  cu_wkt("GEOMETRYCOLLECTION(MULTIPOLYGON(((100 100 2, 100 200 2, 200 200 2, 200 100 2, 100 100 2))),MULTIPOINT(.5 .5 .5,1 1 1),CURVEPOLYGON((.8 .8 .8,.8 .8 .8,.8 .8 .8)))",WKT_ISO),
148  "GEOMETRYCOLLECTION Z (MULTIPOLYGON Z (((100 100 2,100 200 2,200 200 2,200 100 2,100 100 2))),MULTIPOINT Z (0.5 0.5 0.5,1 1 1),CURVEPOLYGON Z ((0.8 0.8 0.8,0.8 0.8 0.8,0.8 0.8 0.8)))"
149  );
150 
151  /* See http://trac.osgeo.org/postgis/ticket/724 */
152  CU_ASSERT_STRING_EQUAL(
153  cu_wkt("GEOMETRYCOLLECTIONM(MULTIPOINTM(0 0 0), POINTM(1 1 1))", WKT_EXTENDED),
154  "GEOMETRYCOLLECTIONM(MULTIPOINTM(0 0 0),POINTM(1 1 1))"
155  );
156 }
#define WKT_ISO
Definition: liblwgeom.h:1776
static char * cu_wkt(char *wkt, uint8_t variant)
Definition: cu_out_wkt.c:47
#define WKT_EXTENDED
Definition: liblwgeom.h:1778

Here is the call graph for this function:

Here is the caller graph for this function: