PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ test_wkt_in_compoundcurve()

static void test_wkt_in_compoundcurve ( void  )
static

Definition at line 257 of file cu_in_wkt.c.

References cu_wkt_in(), lwfree(), r, s, WKT_EXTENDED, and WKT_ISO.

Referenced by wkt_in_suite_setup().

258 {
259  s = "SRID=4326;COMPOUNDCURVEM(CIRCULARSTRINGM(0 0 2,1 1 2,1 0 2),(1 0 2,0 1 2))";
261  CU_ASSERT_STRING_EQUAL(r,s);
262  //printf("\nIN: %s\nOUT: %s\n",s,r);
263  lwfree(r);
264 
265  s = "COMPOUNDCURVE Z (CIRCULARSTRING Z (0 0 0,0 1 0,1 1 0,0 0 0,2 2 0),(2 2 0,0 0 1,1 1 1,2 2 1))";
266  r = cu_wkt_in(s, WKT_ISO);
267  CU_ASSERT_STRING_EQUAL(r,s);
268  //printf("\nIN: %s\nOUT: %s\n",s,r);
269  lwfree(r);
270 }
char * r
Definition: cu_in_wkt.c:24
void lwfree(void *mem)
Definition: lwutil.c:244
#define WKT_ISO
Definition: liblwgeom.h:2074
char * s
Definition: cu_in_wkt.c:23
#define WKT_EXTENDED
Definition: liblwgeom.h:2076
static char * cu_wkt_in(char *wkt, uint8_t variant)
Definition: cu_in_wkt.c:50
Here is the call graph for this function:
Here is the caller graph for this function: