PostGIS  2.5.7dev-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.

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 }
static uint8_t precision
Definition: cu_in_twkb.c:25
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2005
void lwfree(void *mem)
Definition: lwutil.c:244
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)

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

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

Here is the call graph for this function:
Here is the caller graph for this function: