PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ do_svg_test()

static void do_svg_test ( char *  in,
char *  out,
int  precision,
int  relative 
)
static

Definition at line 20 of file cu_out_svg.c.

21{
22 LWGEOM *g;
23 char * h;
24
26 h = lwgeom_to_svg(g, precision, relative);
27
28 if (strcmp(h, out))
29 fprintf(stderr, "\nIn: %s\nOut: %s\nTheo: %s\n", in, h, out);
30
31 CU_ASSERT_STRING_EQUAL(h, out);
32
33 lwgeom_free(g);
34 lwfree(h);
35}
static uint8_t precision
Definition cu_in_twkb.c:25
void lwgeom_free(LWGEOM *geom)
Definition lwgeom.c:1138
#define LW_PARSER_CHECK_NONE
Definition liblwgeom.h:2060
char * lwgeom_to_svg(const LWGEOM *geom, int precision, int relative)
Takes a GEOMETRY and returns a SVG representation.
Definition lwout_svg.c:56
void lwfree(void *mem)
Definition lwutil.c:242
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition lwin_wkt.c:905

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

Referenced by out_svg_test_dims(), out_svg_test_geoms(), out_svg_test_precision(), out_svg_test_relative(), and out_svg_test_srid().

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