PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ test_wkt_out_collection()

static void test_wkt_out_collection ( void  )
static

Definition at line 138 of file cu_out_wkt.c.

139 {
140  //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));
141  CU_ASSERT_STRING_EQUAL(
142  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),
143  "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))"
144  );
145  CU_ASSERT_STRING_EQUAL(
146  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),
147  "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)))"
148  );
149 
150  /* See http://trac.osgeo.org/postgis/ticket/724 */
151  CU_ASSERT_STRING_EQUAL(
152  cu_wkt("GEOMETRYCOLLECTIONM(MULTIPOINTM(0 0 0), POINTM(1 1 1))", WKT_EXTENDED),
153  "GEOMETRYCOLLECTIONM(MULTIPOINTM(0 0 0),POINTM(1 1 1))"
154  );
155 }
static char * cu_wkt(char *wkt, uint8_t variant)
Definition: cu_out_wkt.c:46
#define WKT_EXTENDED
Definition: liblwgeom.h:2077
#define WKT_ISO
Definition: liblwgeom.h:2075

References cu_wkt(), WKT_EXTENDED, and WKT_ISO.

Referenced by wkt_out_suite_setup().

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