PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ nonsequential_test()

static void nonsequential_test ( void  )
static

Definition at line 209 of file cu_geos_cluster.c.

210 {
211  char* wkt_inputs[] = { "LINESTRING (0 0, 1 1)",
212  "LINESTRING (1 1, 2 2)",
213  "LINESTRING (5 5, 6 6)",
214  "LINESTRING (5 5, 4 4)",
215  "LINESTRING (3 3, 2 2)",
216  "LINESTRING (3 3, 4 4)"
217  };
218 
219  char* expected_outputs[] = { "GEOMETRYCOLLECTION (LINESTRING (0 0, 1 1), LINESTRING (1 1, 2 2), LINESTRING (5 5, 6 6), LINESTRING (5 5, 4 4), LINESTRING (3 3, 2 2), LINESTRING (3 3, 4 4))" };
220 
221  perform_cluster_intersecting_test(wkt_inputs, 6, expected_outputs, 1);
222  perform_cluster_within_distance_test(0, wkt_inputs, 6, expected_outputs, 1);
223 }
static void perform_cluster_within_distance_test(double tolerance, char **wkt_inputs, uint32_t num_inputs, char **wkt_outputs, uint32_t num_outputs)
static void perform_cluster_intersecting_test(char **wkt_inputs, uint32_t num_inputs, char **wkt_outputs, uint32_t num_outputs)

References perform_cluster_intersecting_test(), and perform_cluster_within_distance_test().

Referenced by geos_cluster_suite_setup().

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