PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ do_encoded_polyline_test()

static void do_encoded_polyline_test ( char *  in,
int  precision,
char *  out 
)
static

Definition at line 23 of file cu_out_encoded_polyline.c.

References LW_PARSER_CHECK_NONE, lwfree(), lwgeom_free(), lwgeom_from_wkt(), and lwgeom_to_encoded_polyline().

Referenced by out_encoded_polyline_test_geoms(), out_encoded_polyline_test_precision(), and out_encoded_polyline_test_srid().

24 {
25  LWGEOM* g;
26  char* h;
27 
30 
31  if (strcmp(h, out))
32  fprintf(stderr, "\nIn: %s\nOut: %s\nTheo: %s\n", in, h, out);
33 
34  CU_ASSERT_STRING_EQUAL(h, out);
35 
36  lwgeom_free(g);
37  lwfree(h);
38 }
void lwfree(void *mem)
Definition: lwutil.c:244
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
char * lwgeom_to_encoded_polyline(const LWGEOM *geom, int precision)
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2004
uint8_t precision
Definition: cu_in_twkb.c:25
Here is the call graph for this function:
Here is the caller graph for this function: