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

◆ do_geom_test()

static void do_geom_test ( char *  in,
char *  out 
)
static

Definition at line 20 of file cu_homogenize.c.

21{
22 LWGEOM *g, *h;
23 char *tmp;
24
26 h = lwgeom_homogenize(g);
27 tmp = lwgeom_to_ewkt(h);
28 if (strcmp(tmp, out))
29 fprintf(stderr, "\nIn: %s\nOut: %s\nExp: %s\n",
30 in, tmp, out);
31 ASSERT_STRING_EQUAL(tmp, out);
32 lwfree(tmp);
33 lwgeom_free(g);
34 /* See http://trac.osgeo.org/postgis/ticket/1104 */
35 lwgeom_free(h);
36}
#define ASSERT_STRING_EQUAL(o, e)
void lwgeom_free(LWGEOM *geom)
Definition lwgeom.c:1246
#define LW_PARSER_CHECK_NONE
Definition liblwgeom.h:2149
LWGEOM * lwgeom_homogenize(const LWGEOM *geom)
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an allocated string.
Definition lwgeom.c:593
void lwfree(void *mem)
Definition lwutil.c:248
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition lwin_wkt.c:940

References ASSERT_STRING_EQUAL, 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().

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