PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ test_twkb_out_polygon()

static void test_twkb_out_polygon ( void  )
static

Definition at line 152 of file cu_out_twkb.c.

153 {
154  cu_twkb("SRID=4;POLYGON((0 0 0, 0 1 0,1 1 0,1 0 0, 0 0 0))", 0, 0, 0, 0);
155  CU_ASSERT_STRING_EQUAL(s,"0308010105000000000200020000000100010000");
156  // printf("TWKB: %s\n",s);
157 
158  cu_twkb("SRID=14;POLYGON((0 0 0 1, 0 1 0 2,1 1 0 3,1 0 0 4, 0 0 0 5))", 0, 0, 0, 0);
159  CU_ASSERT_STRING_EQUAL(s,"03080301050000000200020002020000020001000201000002");
160  // printf("TWKB: %s\n",s);
161 
162  cu_twkb("POLYGON EMPTY", 0, 0, 0, 0);
163  CU_ASSERT_STRING_EQUAL(s,"0310");
164  // printf("TWKB: %s\n",s);
165 }
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

References cu_twkb(), and s.

Referenced by twkb_out_suite_setup().

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