PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ test_grid_in_place()

static void test_grid_in_place ( void  )
static

Definition at line 145 of file liblwgeom/cunit/cu_misc.c.

146 {
147  do_grid_test(
148  "POINT ZM (5.1423999999 5.1423999999 5.1423999999 5.1423999999)",
149  "POINT(5.1424 5.1424 5.1424 5.1424)",
150  0.0001
151  );
152  do_grid_test(
153  "MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0)))",
154  "MULTIPOLYGON EMPTY",
155  20
156  );
157  do_grid_test(
158  "MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0)))",
159  "MULTIPOLYGON(((0 0,10 0,10 10, 0 10,0 0)))",
160  1
161  );
162  do_grid_test(
163  "LINESTRING(0 0,1 1, 2 2, 3 3, 4 4, 5 5)",
164  "LINESTRING(0 0,2 2,4 4)",
165  2
166  );
167  do_grid_test(
168  "MULTIPOINT(0 0,1 1, 2 2, 3 3, 4 4, 5 5)",
169  /* This preserves current behaviour, but is probably not right */
170  "MULTIPOINT(0 0,0 0,2 2,4 4,4 4,4 4)",
171  2
172  );
173  do_grid_test(
174  "MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0),(4 4, 4 5, 5 5, 5 4, 4 4)))",
175  "MULTIPOLYGON(((0 0,10 0,10 10, 0 10,0 0)))",
176  2
177  );
178  do_grid_test(
179  "MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0),(4 4, 4 5, 5 5, 5 4, 4 4)))",
180  "MULTIPOLYGON EMPTY",
181  20
182  );
183  do_grid_test(
184  "POINT Z (5 5 5)",
185  "POINT(0 0 0)",
186  20
187  );
188 }
static void do_grid_test(const char *wkt_in, const char *wkt_out, double size)

References do_grid_test().

Referenced by misc_suite_setup().

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