PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ do_geom_test()

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

Definition at line 20 of file cu_force_sfs.c.

21 {
22  LWGEOM *g, *h;
23  char *tmp;
24 
26  h = lwgeom_force_sfs(g, 110);
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  CU_ASSERT_STRING_EQUAL(tmp, out);
32  lwfree(tmp);
33  lwgeom_free(h);
34 }
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2005
LWGEOM * lwgeom_force_sfs(LWGEOM *geom, int version)
Definition: lwgeom.c:838
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an alloced string.
Definition: lwgeom.c:556
void lwfree(void *mem)
Definition: lwutil.c:244
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904

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

Referenced by test_sfs_11(), and test_sfs_12().

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