PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ test_wkb_out_collection()

static void test_wkb_out_collection ( void  )
static

Definition at line 160 of file cu_out_wkb.c.

161 {
162  cu_wkb("SRID=14;GEOMETRYCOLLECTION(POLYGON((0 0 0,0 1 0,1 1 0,1 0 0,0 0 0)),POINT(1 1 1))");
163  CU_ASSERT_STRING_EQUAL(s,"00A00000070000000E000000020080000003000000010000000500000000000000000000000000000000000000000000000000000000000000003FF000000000000000000000000000003FF00000000000003FF000000000000000000000000000003FF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000013FF00000000000003FF00000000000003FF0000000000000");
164 
165  cu_wkb("GEOMETRYCOLLECTION EMPTY");
166  CU_ASSERT_STRING_EQUAL(s,"000000000700000000");
167 
168  cu_wkb("GEOMETRYCOLLECTION(LINESTRING EMPTY)");
169  CU_ASSERT_STRING_EQUAL(s,"000000000700000001000000000200000000");
170 
171  cu_wkb("GEOMETRYCOLLECTION(LINESTRING EMPTY, MULTILINESTRING(EMPTY,EMPTY))");
172  // printf("%s\n",s );
173  CU_ASSERT_STRING_EQUAL(s,"000000000700000002000000000200000000000000000500000002000000000200000000000000000200000000");
174 }
static void cu_wkb(char *wkt)
Definition: cu_out_wkb.c:61
static char * s
Definition: cu_out_wkb.c:23

References cu_wkb(), and s.

Referenced by wkb_out_suite_setup().

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