PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void do_kml_test_prefix ( char *  in,
char *  out,
int  precision,
const char *  prefix 
)
static

Definition at line 59 of file cu_out_kml.c.

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

Referenced by out_kml_test_prefix().

60 {
61  LWGEOM *g;
62  char * h;
63 
65  h = lwgeom_to_kml2(g, precision, prefix);
66 
67  if (strcmp(h, out))
68  fprintf(stderr, "\nPrefix: %s\nIn: %s\nOut: %s\nTheo: %s\n",
69  prefix, in, h, out);
70 
71  CU_ASSERT_STRING_EQUAL(h, out);
72 
73  lwgeom_free(g);
74  lwfree(h);
75 }
void lwfree(void *mem)
Definition: lwutil.c:190
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1006
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:844
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:1706
char * lwgeom_to_kml2(const LWGEOM *geom, int precision, const char *prefix)
Definition: lwout_kml.c:32

Here is the call graph for this function:

Here is the caller graph for this function: