PostGIS  2.3.7dev-r@@SVN_REVISION@@
static void do_type_test ( char *  in,
int  type 

Definition at line 37 of file cu_force_sfs.c.

References LW_PARSER_CHECK_NONE, lwgeom_force_sfs(), lwgeom_free(), lwgeom_from_wkt(), lwtype_name(), and LWGEOM::type.

Referenced by test_sqlmm().

38 {
39  LWGEOM *g, *h;
42  h = lwgeom_force_sfs(g, 110);
43  if(h->type != type)
44  fprintf(stderr, "\nIn: %s\nOut: %s\nExp: %s\n",
45  in, lwtype_name(h->type), lwtype_name(type));
46  CU_ASSERT_EQUAL(h->type, type);
47  lwgeom_free(h);
48  lwgeom_free(g);
49 }
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1063
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
LWGEOM * lwgeom_force_sfs(LWGEOM *geom, int version)
Definition: lwgeom.c:757
Definition: liblwgeom.h:1985
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
Definition: lwutil.c:216
uint8_t type
Definition: liblwgeom.h:395

Here is the call graph for this function:

Here is the caller graph for this function: