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

◆ test_twkb_out_linestring()

static void test_twkb_out_linestring ( void  )
static

Definition at line 127 of file cu_out_twkb.c.

128{
129
130 cu_twkb("LINESTRING(0 0,1 1)", 0, 0, 0, 0);
131 ASSERT_STRING_EQUAL(s,"02000200000202");
132 // printf("TWKB: %s\n",s);
133
134 cu_twkb("LINESTRING(0 0 1,1 1 2,2 2 3)", 0, 0, 0, 0);
135 ASSERT_STRING_EQUAL(s,"02080103000002020202020202");
136 // printf("TWKB: %s\n",s);
137
138 /* Line with bounding box */
139 cu_twkb("LINESTRING(0 0,1 1,2 2)", 0, 0, 0, TWKB_BBOX);
140 ASSERT_STRING_EQUAL(s,"02010004000403000002020202");
141 // printf("TWKB: %s\n",s);
142
143 cu_twkb("LINESTRING EMPTY", 0, 0, 0, 0);
144 ASSERT_STRING_EQUAL(s,"0210");
145 // printf("TWKB: %s\n",s);
146}
static void cu_twkb(char *wkt, int8_t prec_xy, int8_t prec_z, int8_t prec_m, uint8_t variant)
Definition cu_out_twkb.c:55
static char * s
Definition cu_out_twkb.c:24
#define ASSERT_STRING_EQUAL(o, e)
#define TWKB_BBOX
Definition liblwgeom.h:2227

References ASSERT_STRING_EQUAL, cu_twkb(), s, and TWKB_BBOX.

Referenced by twkb_out_suite_setup().

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