PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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}
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
Definition lwutil.c:216
void lwgeom_free(LWGEOM *geom)
Definition lwgeom.c:1246
#define LW_PARSER_CHECK_NONE
Definition liblwgeom.h:2149
LWGEOM * lwgeom_force_sfs(LWGEOM *geom, int version)
Definition lwgeom.c:877
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition lwin_wkt.c:940
uint8_t type
Definition liblwgeom.h:462

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

Referenced by test_sqlmm().

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