PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ test_grid_in_place()

static void test_grid_in_place ( void  )
static

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

169 {
170  do_grid_test(
171  "POINT ZM (5.1423999999 5.1423999999 5.1423999999 5.1423999999)",
172  "POINT(5.1424 5.1424 5.1424 5.1424)",
173  0.0001
174  );
175  do_grid_test(
176  "MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0)))",
177  "MULTIPOLYGON EMPTY",
178  20
179  );
180  do_grid_test(
181  "MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0)))",
182  "MULTIPOLYGON(((0 0,10 0,10 10, 0 10,0 0)))",
183  1
184  );
185  do_grid_test(
186  "LINESTRING(0 0,1 1, 2 2, 3 3, 4 4, 5 5)",
187  "LINESTRING(0 0,2 2,4 4)",
188  2
189  );
190  do_grid_test(
191  "MULTIPOINT(0 0,1 1, 2 2, 3 3, 4 4, 5 5)",
192  /* This preserves current behaviour, but is probably not right */
193  "MULTIPOINT(0 0,0 0,2 2,4 4,4 4,4 4)",
194  2
195  );
196  do_grid_test(
197  "MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0),(4 4, 4 5, 5 5, 5 4, 4 4)))",
198  "MULTIPOLYGON(((0 0,10 0,10 10, 0 10,0 0)))",
199  2
200  );
201  do_grid_test(
202  "MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0),(4 4, 4 5, 5 5, 5 4, 4 4)))",
203  "MULTIPOLYGON EMPTY",
204  20
205  );
206  do_grid_test(
207  "POINT Z (5 5 5)",
208  "POINT(0 0 0)",
209  20
210  );
211 }
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: