PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ test_force_3dm()

static void test_force_3dm ( void  )
static

Definition at line 51 of file cu_force_dims.c.

52 {
53  LWGEOM *geom;
54  LWGEOM *geom3dm;
55  char *wkt_out;
56 
57  geom = lwgeom_from_wkt("CIRCULARSTRING(-5 0 4,0 5 3,5 0 2,10 -5 1,15 0 0)", LW_PARSER_CHECK_NONE);
58  geom3dm = lwgeom_force_3dm(geom, 1);
59  wkt_out = lwgeom_to_ewkt(geom3dm);
60  CU_ASSERT_STRING_EQUAL("CIRCULARSTRINGM(-5 0 1,0 5 1,5 0 1,10 -5 1,15 0 1)", wkt_out);
61  lwgeom_free(geom);
62  lwgeom_free(geom3dm);
63  lwfree(wkt_out);
64 }
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1155
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2114
LWGEOM * lwgeom_force_3dm(const LWGEOM *geom, double mval)
Definition: lwgeom.c:805
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an alloced string.
Definition: lwgeom.c:565
void lwfree(void *mem)
Definition: lwutil.c:242
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:905

References LW_PARSER_CHECK_NONE, lwfree(), lwgeom_force_3dm(), lwgeom_free(), lwgeom_from_wkt(), and lwgeom_to_ewkt().

Referenced by force_dims_suite_setup().

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