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

◆ test_misc_wkb()

static void test_misc_wkb ( void  )
static

Definition at line 127 of file liblwgeom/cunit/cu_misc.c.

128{
129 static char *wkb = "010A0000000200000001080000000700000000000000000000C00000000000000000000000000000F0BF000000000000F0BF00000000000000000000000000000000000000000000F03F000000000000F0BF000000000000004000000000000000000000000000000000000000000000004000000000000000C00000000000000000010200000005000000000000000000F0BF00000000000000000000000000000000000000000000E03F000000000000F03F00000000000000000000000000000000000000000000F03F000000000000F0BF0000000000000000";
131 char *str = lwgeom_to_wkt(geom, WKB_ISO, 8, 0);
132 ASSERT_STRING_EQUAL(str, "CURVEPOLYGON(CIRCULARSTRING(-2 0,-1 -1,0 0,1 -1,2 0,0 2,-2 0),(-1 0,0 0.5,1 0,0 1,-1 0))");
133 lwfree(str);
134 lwgeom_free(geom);
135
136}
#define ASSERT_STRING_EQUAL(o, e)
#define LW_PARSER_CHECK_ALL
Definition liblwgeom.h:2150
#define WKB_ISO
Definition liblwgeom.h:2210
void lwgeom_free(LWGEOM *geom)
Definition lwgeom.c:1246
char * lwgeom_to_wkt(const LWGEOM *geom, uint8_t variant, int precision, size_t *size_out)
WKT emitter function.
Definition lwout_wkt.c:708
void lwfree(void *mem)
Definition lwutil.c:248
LWGEOM * lwgeom_from_hexwkb(const char *hexwkb, const char check)
Definition lwin_wkb.c:866
#define str(s)

References ASSERT_STRING_EQUAL, LW_PARSER_CHECK_ALL, lwfree(), lwgeom_free(), lwgeom_from_hexwkb(), lwgeom_to_wkt(), str, and WKB_ISO.

Referenced by misc_suite_setup().

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