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

◆ test_wkb_out_polygon()

static void test_wkb_out_polygon ( void  )
static

Definition at line 114 of file cu_out_wkb.c.

115{
116 cu_wkb("SRID=4;POLYGON((0 0 0,0 1 0,1 1 0,1 0 0,0 0 0))");
117 ASSERT_STRING_EQUAL(s,"00A000000300000004000000010000000500000000000000000000000000000000000000000000000000000000000000003FF000000000000000000000000000003FF00000000000003FF000000000000000000000000000003FF000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000");
118
119 cu_wkb("SRID=14;POLYGON((0 0 0 1,0 1 0 2,1 1 0 3,1 0 0 4,0 0 0 5))");
120 ASSERT_STRING_EQUAL(s,"00E00000030000000E00000001000000050000000000000000000000000000000000000000000000003FF000000000000000000000000000003FF0000000000000000000000000000040000000000000003FF00000000000003FF0000000000000000000000000000040080000000000003FF00000000000000000000000000000000000000000000040100000000000000000000000000000000000000000000000000000000000004014000000000000");
121
122 cu_wkb("SRID=4;POLYGON((0 0 0 1,0 1 0 2,1 1 0 3,1 0 0 4,0 0 0 5))");
123 ASSERT_STRING_EQUAL(s,"00E00000030000000400000001000000050000000000000000000000000000000000000000000000003FF000000000000000000000000000003FF0000000000000000000000000000040000000000000003FF00000000000003FF0000000000000000000000000000040080000000000003FF00000000000000000000000000000000000000000000040100000000000000000000000000000000000000000000000000000000000004014000000000000");
124
125 cu_wkb("POLYGON EMPTY");
126 ASSERT_STRING_EQUAL(s,"000000000300000000");
127
128 /*
129 * POLYGON with EMPTY shell
130 * See http://http://trac.osgeo.org/postgis/ticket/937
131 */
132 cu_wkb_from_hexwkb("01030000000100000000000000");
133 ASSERT_STRING_EQUAL(s,"000000000300000000");
134}
static void cu_wkb(char *wkt)
Definition cu_out_wkb.c:60
static void cu_wkb_from_hexwkb(char *hexwkb)
Definition cu_out_wkb.c:49
static char * s
Definition cu_out_wkb.c:23
#define ASSERT_STRING_EQUAL(o, e)

References ASSERT_STRING_EQUAL, cu_wkb(), cu_wkb_from_hexwkb(), and s.

Referenced by wkb_out_suite_setup().

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