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);
45 "SRID=4326;LINESTRING(33.6729 38.7071,33.6692 38.701,"
46 "33.6673 38.6972,33.6626 38.6871)",
48 "k~fkFsvolEbe@bVvVzJb~@j\\");
52 "LINESTRING(-120.2 38.5,-120.95 40.7,-126.453 43.252)",
54 "_p~iF~ps|U_ulLnnqC_mqNvxq`@");
59 "MULTIPOINT(-120.2 38.5,-120.95 40.7)", 5,
"_p~iF~ps|U_ulLnnqC");
69 "SRID=4326;LINESTRING(0 1,2 3)", 5,
"_ibE?_seK_seK");
73 "SRID=4327;LINESTRING(0 1,2 3)", 5,
"_ibE?_seK_seK");
82 "LINESTRING(-0.250691 49.283048, -0.250633 49.283376,"
83 "-0.250502 49.283972, -0.251245 49.284028, -0.251938 "
84 "49.284232, -0.251938 49.2842)",
86 "o}~~|AdshNoSsBgd@eGoBlm@wKhj@~@?");
90 "MULTIPOINT(-120.2 38.5,-120.95 40.7)", 3,
"gejAnwiFohCzm@");
100 CU_pSuite suite = CU_add_suite(
"encoded_polyline_output", NULL, NULL);
void out_encoded_polyline_suite_setup(void)
static void do_encoded_polyline_test(char *in, int precision, char *out)
static void out_encoded_polyline_test_precision(void)
static void out_encoded_polyline_test_srid(void)
static void out_encoded_polyline_test_geoms(void)
#define PG_ADD_TEST(suite, testfunc)
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
char * lwgeom_to_encoded_polyline(const LWGEOM *geom, int precision)