PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ check_geom_equal

#define check_geom_equal (   gobt,
  gexp 
)
Value:
do { \
char *obt, *exp; \
LWGEOM *ngobt, *ngexp; \
ngobt = lwgeom_normalize(gobt); \
ngexp = lwgeom_normalize(gexp); \
if ( ! lwgeom_same((ngobt), (ngexp)) ) { \
obt = lwgeom_to_wkt((ngobt), WKT_ISO, 8, NULL); \
exp = lwgeom_to_wkt((ngexp), WKT_ISO, 8, NULL); \
printf(" Failure at %s:%d\n", __FILE__, __LINE__); \
printf(" Exp: %s\n", exp); \
printf(" Obt: %s\n", obt); \
free(obt); free(exp); \
lwgeom_free(ngobt); lwgeom_free(ngexp); \
CU_ASSERT(0); \
} else { \
lwgeom_free(ngobt); lwgeom_free(ngexp); \
CU_ASSERT(1); \
} \
} while (0)
char * lwgeom_to_wkt(const LWGEOM *geom, uint8_t variant, int precision, size_t *size_out)
WKT emitter function.
Definition: lwout_wkt.c:669
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1099
#define WKT_ISO
Definition: liblwgeom.h:2083
LWGEOM * lwgeom_normalize(const LWGEOM *geom)
char lwgeom_same(const LWGEOM *lwgeom1, const LWGEOM *lwgeom2)
geom1 same as geom2 iff
Definition: lwgeom.c:544
void free(void *)

Definition at line 22 of file cu_clean.c.

Referenced by test_lwgeom_make_valid().