PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void do_geom_test ( char *  in,
char *  out 
)
static

Definition at line 21 of file cu_homogenize.c.

References LW_PARSER_CHECK_NONE, lwfree(), lwgeom_free(), lwgeom_from_wkt(), lwgeom_homogenize(), and lwgeom_to_ewkt().

Referenced by test_coll_coll(), test_coll_curve(), test_coll_line(), test_coll_point(), test_coll_poly(), and test_geom().

22 {
23  LWGEOM *g, *h;
24  char *tmp;
25 
27  h = lwgeom_homogenize(g);
28  tmp = lwgeom_to_ewkt(h);
29  if (strcmp(tmp, out))
30  fprintf(stderr, "\nIn: %s\nOut: %s\nExp: %s\n",
31  in, tmp, out);
32  CU_ASSERT_STRING_EQUAL(tmp, out);
33  lwfree(tmp);
34  lwgeom_free(g);
35  /* See http://trac.osgeo.org/postgis/ticket/1104 */
36  lwgeom_free(h);
37 }
void lwfree(void *mem)
Definition: lwutil.c:190
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an alloced string.
Definition: lwgeom.c:425
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
LWGEOM * lwgeom_homogenize(const LWGEOM *geom)
Definition: lwhomogenize.c:196

Here is the call graph for this function:

Here is the caller graph for this function: