PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ test_twkb_out_collection()

static void test_twkb_out_collection ( void  )
static

Definition at line 186 of file cu_out_twkb.c.

187 {
188  cu_twkb("GEOMETRYCOLLECTION(LINESTRING(1 1, 2 2), LINESTRING(3 3, 4 4), LINESTRING(5 5, 6 6))", 0, 0, 0, 0);
189  // printf("TWKB: %s\n",s);
190  CU_ASSERT_STRING_EQUAL(s,"07000302000202020202020002060602020200020A0A0202");
191 
192  cu_twkb("GEOMETRYCOLLECTION(POLYGON((0 0 0, 0 1 0,1 1 0,1 0 0, 0 0 0)),POINT(1 1 1))", 0, 0, 0, 0);
193  // printf("TWKB: %s\n",s);
194  CU_ASSERT_STRING_EQUAL(s,"070801020308010105000000000200020000000100010000010801020202");
195 
196  cu_twkb("GEOMETRYCOLLECTION EMPTY", 0, 0, 0, 0);
197  CU_ASSERT_STRING_EQUAL(s,"0710");
198 }
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: