PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ do_kml_test_prefix()

static void do_kml_test_prefix ( char *  in,
char *  out,
int  precision,
const char *  prefix 
)
static

Definition at line 58 of file cu_out_kml.c.

59 {
60  LWGEOM *g;
61  char * h;
62 
64  h = lwgeom_to_kml2(g, precision, prefix);
65 
66  if (strcmp(h, out))
67  fprintf(stderr, "\nPrefix: %s\nIn: %s\nOut: %s\nTheo: %s\n",
68  prefix, in, h, out);
69 
70  CU_ASSERT_STRING_EQUAL(h, out);
71 
72  lwgeom_free(g);
73  lwfree(h);
74 }
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
char * lwgeom_to_kml2(const LWGEOM *geom, int precision, const char *prefix)
Definition: lwout_kml.c:43
void lwfree(void *mem)
Definition: lwutil.c:244
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904

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

Referenced by out_kml_test_prefix().

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