PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void test_misc_wkb ( void  )
static

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

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

Referenced by misc_suite_setup().

112 {
113  static char *wkb = "010A0000000200000001080000000700000000000000000000C00000000000000000000000000000F0BF000000000000F0BF00000000000000000000000000000000000000000000F03F000000000000F0BF000000000000004000000000000000000000000000000000000000000000004000000000000000C00000000000000000010200000005000000000000000000F0BF00000000000000000000000000000000000000000000E03F000000000000F03F00000000000000000000000000000000000000000000F03F000000000000F0BF0000000000000000";
115  char *str = lwgeom_to_wkt(geom, WKB_ISO, 8, 0);
116  CU_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))");
117  lwfree(str);
118  lwgeom_free(geom);
119 
120 }
char * lwgeom_to_wkt(const LWGEOM *geom, uint8_t variant, int precision, size_t *size_out)
WKT emitter function.
Definition: lwout_wkt.c:655
void lwfree(void *mem)
Definition: lwutil.c:190
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1006
#define WKB_ISO
Definition: liblwgeom.h:1767
LWGEOM * lwgeom_from_hexwkb(const char *hexwkb, const char check)
Definition: lwin_wkb.c:753
#define LW_PARSER_CHECK_ALL
Definition: liblwgeom.h:1707

Here is the call graph for this function:

Here is the caller graph for this function: