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

Definition at line 38 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().

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

Here is the call graph for this function:

Here is the caller graph for this function: