PostGIS  2.4.9dev-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.

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;
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:1099
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:793
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2013
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
Definition: lwutil.c:218
uint8_t type
Definition: liblwgeom.h:396
type
Definition: ovdump.py:41
Here is the call graph for this function:
Here is the caller graph for this function: