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

Definition at line 21 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(), and out_x3d3_test_precision().

22 {
23  LWGEOM *g;
24  char * h;
25 
27  h = lwgeom_to_x3d3(g, srs, precision, 0, "");
28 
29  if (strcmp(h, out))
30  fprintf(stderr, "\nIn: %s\nOut: %s\nTheo: %s\n", in, h, out);
31 
32  CU_ASSERT_STRING_EQUAL(h, out);
33 
34  lwgeom_free(g);
35  lwfree(h);
36 }
char * lwgeom_to_x3d3(const LWGEOM *geom, char *srs, int precision, int opts, const char *defid)
Definition: lwout_x3d.c:49
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

Here is the call graph for this function:

Here is the caller graph for this function: