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

Definition at line 106 of file cu_homogenize.c.

References do_geom_test().

Referenced by homogenize_suite_setup().

107 {
108  /* Two different types together must produce a Collection as output */
109  do_geom_test("GEOMETRYCOLLECTION(POINT(1 2),LINESTRING(3 4,5 6))",
110  "GEOMETRYCOLLECTION(POINT(1 2),LINESTRING(3 4,5 6))");
111 
112  do_geom_test("GEOMETRYCOLLECTION(LINESTRING(1 2,3 4),POLYGON((5 6,7 8,9 10,5 6)))",
113  "GEOMETRYCOLLECTION(LINESTRING(1 2,3 4),POLYGON((5 6,7 8,9 10,5 6)))");
114 
115 
116  /* Ability to produce a single MULTI with same type */
117  do_geom_test("GEOMETRYCOLLECTION(POINT(1 2),LINESTRING(3 4,5 6),POINT(7 8))",
118  "GEOMETRYCOLLECTION(MULTIPOINT(1 2,7 8),LINESTRING(3 4,5 6))");
119 
120  do_geom_test("GEOMETRYCOLLECTION(POINT(1 2),LINESTRING(3 4,5 6),MULTIPOINT(7 8,9 10))",
121  "GEOMETRYCOLLECTION(MULTIPOINT(1 2,7 8,9 10),LINESTRING(3 4,5 6))");
122 
123 
124  /* Recursive Collection handle */
125  do_geom_test("GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(1 2))))",
126  "POINT(1 2)");
127 
128  do_geom_test("GEOMETRYCOLLECTION(POINT(1 2),GEOMETRYCOLLECTION(LINESTRING(3 4,5 6)))",
129  "GEOMETRYCOLLECTION(POINT(1 2),LINESTRING(3 4,5 6))");
130 
131 
132  /* EMPTY Collection */
133  do_geom_test("GEOMETRYCOLLECTION EMPTY",
134  "GEOMETRYCOLLECTION EMPTY");
135 
136 
137  /* Recursive EMPTY Collection */
138  do_geom_test("GEOMETRYCOLLECTION(GEOMETRYCOLLECTION EMPTY)",
139  "GEOMETRYCOLLECTION EMPTY");
140 
141  do_geom_test("GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(GEOMETRYCOLLECTION EMPTY))",
142  "GEOMETRYCOLLECTION EMPTY");
143 }
static void do_geom_test(char *in, char *out)
Definition: cu_homogenize.c:21

Here is the call graph for this function:

Here is the caller graph for this function: