17 #include "CUnit/Basic.h"
32 fprintf(stderr,
"\nIn: %s\nOut: %s\nTheo: %s\n", in, h, out);
34 CU_ASSERT_STRING_EQUAL(h, out);
43 "_p~iF~ps|U_ulLnnqC_mqNvxq`@",
45 "SRID=4326;LINESTRING(-120.2 38.5,-120.95 40.7,-126.453 43.252)");
51 "o}~~|AdshNoSsBgd@eGoBlm@wKhj@~@?",
53 "SRID=4326;LINESTRING(-0.250691 49.283048,-0.250633 49.283376,-0.250502 49.283972,-0.251245 49.284028,-0.251938 49.284232,-0.251938 49.2842)");
62 CU_pSuite suite = CU_add_suite(
"encoded_polyline_input", NULL, NULL);
static void in_encoded_polyline_test_precision(void)
void in_encoded_polyline_suite_setup(void)
static void do_encoded_polyline_test(char *in, int precision, char *out)
static void in_encoded_polyline_test_geoms(void)
#define PG_ADD_TEST(suite, testfunc)
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwgeom_from_encoded_polyline(const char *encodedpolyline, int precision)
Create an LWGEOM object from an Encoded Polyline representation.
char * lwgeom_to_wkt(const LWGEOM *geom, uint8_t variant, int precision, size_t *size_out)
WKT emitter function.