PostGIS  2.5.7dev-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_same(const LWGEOM *lwgeom1, const LWGEOM *lwgeom2)
geom1 same as geom2 iff
Definition: lwgeom.c:582
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
LWGEOM * lwgeom_normalize(const LWGEOM *geom)
#define WKT_ISO
Definition: liblwgeom.h:2075
char * lwgeom_to_wkt(const LWGEOM *geom, uint8_t variant, int precision, size_t *size_out)
WKT emitter function.
Definition: lwout_wkt.c:676
void free(void *)

Definition at line 23 of file cu_buildarea.c.