PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ test_wkt_in_linestring()

static void test_wkt_in_linestring ( void  )
static

Definition at line 98 of file cu_in_wkt.c.

99 {
100  s = "LINESTRING EMPTY";
101  r = cu_wkt_in(s, WKT_SFSQL);
102  CU_ASSERT_STRING_EQUAL(r,s);
103  lwfree(r);
104 
105  s = "LINESTRING(0 0,1 1)";
106  r = cu_wkt_in(s, WKT_SFSQL);
107  CU_ASSERT_STRING_EQUAL(r,s);
108  lwfree(r);
109 
110  s = "LINESTRING(0 0 0,1 1 1)";
112  CU_ASSERT_STRING_EQUAL(r,s);
113  lwfree(r);
114 
115  s = "LINESTRING M (0 0 0,1 1 1)";
116  r = cu_wkt_in(s, WKT_ISO);
117  CU_ASSERT_STRING_EQUAL(r,s);
118  lwfree(r);
119 
120  s = "LINESTRING ZM (0 0 0 1,1 1 1 1,2 2 2 2,0.141231 4 5 4)";
121  r = cu_wkt_in(s, WKT_ISO);
122  CU_ASSERT_STRING_EQUAL(r,s);
123  lwfree(r);
124 
125  s = "LINESTRINGM(0 0 0,1 1 1)";
127  CU_ASSERT_STRING_EQUAL(r,s);
128  lwfree(r);
129 
130  s = "LINESTRING ZM EMPTY";
131  r = cu_wkt_in(s, WKT_ISO);
132  CU_ASSERT_STRING_EQUAL(r,s);
133  lwfree(r);
134 
135  s = "LINESTRING Z (0 0 0 1, 0 1 0 1)";
137  CU_ASSERT_STRING_EQUAL(r,"can not mix dimensionality in a geometry");
138  //printf("\nIN: %s\nOUT: %s\n",s,r);
139  lwfree(r);
140 
141 }
char * s
Definition: cu_in_wkt.c:23
char * r
Definition: cu_in_wkt.c:24
static char * cu_wkt_in(char *wkt, uint8_t variant)
Definition: cu_in_wkt.c:50
#define WKT_SFSQL
Definition: liblwgeom.h:2076
#define WKT_EXTENDED
Definition: liblwgeom.h:2077
void lwfree(void *mem)
Definition: lwutil.c:244
#define WKT_ISO
Definition: liblwgeom.h:2075

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

Referenced by wkt_in_suite_setup().

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