160 char* a =
"LINESTRING (0 0, 1 1)";
161 char* b =
"LINESTRING (1 1, 2 2)";
162 char* c =
"LINESTRING (5 5, 6 6)";
164 char* wkt_inputs_a[] = {a, b, c};
165 char* wkt_inputs_b[] = {b, c, a};
166 char* wkt_inputs_c[] = {c, a, b};
168 char* expected_outputs_a[] = {
"GEOMETRYCOLLECTION(LINESTRING (0 0, 1 1), LINESTRING (1 1, 2 2))",
169 "GEOMETRYCOLLECTION(LINESTRING (5 5, 6 6))"
172 char* expected_outputs_b[] = {
"GEOMETRYCOLLECTION(LINESTRING (1 1, 2 2), LINESTRING (0 0, 1 1))",
173 "GEOMETRYCOLLECTION(LINESTRING (5 5, 6 6))"
176 char* expected_outputs_c[] = {
"GEOMETRYCOLLECTION(LINESTRING (0 0, 1 1), LINESTRING (1 1, 2 2))",
177 "GEOMETRYCOLLECTION(LINESTRING (5 5, 6 6))"
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)