162 char* a =
"LINESTRING (0 0, 1 1)";
163 char* b =
"LINESTRING (1 1, 2 2)";
164 char* c =
"LINESTRING (5 5, 6 6)";
166 char* wkt_inputs_a[] = {a, b, c};
167 char* wkt_inputs_b[] = {b, c, a};
168 char* wkt_inputs_c[] = {c, a, b};
170 char* expected_outputs_a[] = {
"GEOMETRYCOLLECTION(LINESTRING (0 0, 1 1), LINESTRING (1 1, 2 2))",
171 "GEOMETRYCOLLECTION(LINESTRING (5 5, 6 6))"
174 char* expected_outputs_b[] = {
"GEOMETRYCOLLECTION(LINESTRING (1 1, 2 2), LINESTRING (0 0, 1 1))",
175 "GEOMETRYCOLLECTION(LINESTRING (5 5, 6 6))"
178 char* expected_outputs_c[] = {
"GEOMETRYCOLLECTION(LINESTRING (0 0, 1 1), LINESTRING (1 1, 2 2))",
179 "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)