PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ test_grid_in_place()

static void test_grid_in_place ( void  )
static

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

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