PostGIS  2.3.7dev-r@@SVN_REVISION@@
static void do_x3d3_test ( char *  in,
char *  out,
char *  srs,
int  precision,
int  option 
)
static

Definition at line 20 of file cu_out_x3d.c.

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

Referenced by out_x3d3_test_geoms(), out_x3d3_test_option(), and out_x3d3_test_precision().

21 {
22  LWGEOM *g;
23  char * h;
24 
26  h = lwgeom_to_x3d3(g, srs, precision, option, "");
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 }
char * lwgeom_to_x3d3(const LWGEOM *geom, char *srs, int precision, int opts, const char *defid)
Definition: lwout_x3d.c:60
void lwfree(void *mem)
Definition: lwutil.c:242
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1063
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:1985
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: