PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ nonsequential_test()

static void nonsequential_test ( void  )
static

Definition at line 207 of file cu_geos_cluster.c.

References perform_cluster_intersecting_test(), and perform_cluster_within_distance_test().

Referenced by geos_cluster_suite_setup().

208 {
209  char* wkt_inputs[] = { "LINESTRING (0 0, 1 1)",
210  "LINESTRING (1 1, 2 2)",
211  "LINESTRING (5 5, 6 6)",
212  "LINESTRING (5 5, 4 4)",
213  "LINESTRING (3 3, 2 2)",
214  "LINESTRING (3 3, 4 4)"
215  };
216 
217  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))" };
218 
219  perform_cluster_intersecting_test(wkt_inputs, 6, expected_outputs, 1);
220  perform_cluster_within_distance_test(0, wkt_inputs, 6, expected_outputs, 1);
221 }
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)
Here is the call graph for this function:
Here is the caller graph for this function: