PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ do_type_test()

static void do_type_test ( char *  in,
int  type 
)
static

Definition at line 37 of file cu_force_sfs.c.

38 {
39  LWGEOM *g, *h;
40 
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:1144
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2005
LWGEOM * lwgeom_force_sfs(LWGEOM *geom, int version)
Definition: lwgeom.c:838
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
Definition: lwutil.c:218
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
type
Definition: ovdump.py:41
uint8_t type
Definition: liblwgeom.h:399

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

Referenced by test_sqlmm().

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