143 CU_ASSERT_EQUAL( size, 32 );
148 CU_ASSERT_EQUAL( size, 40 );
153 CU_ASSERT_EQUAL( size, 80 );
158 CU_ASSERT_EQUAL( size, 48 );
163 CU_ASSERT_EQUAL( size, 96 );
168 CU_ASSERT_EQUAL( size, 104 );
171 g =
lwgeom_from_wkt(
"POLYGON((-1 -1, -1 2, 2 2, 2 -1, -1 -1), (0 0, 0 1, 1 1, 1 0, 0 0))",
LW_PARSER_CHECK_NONE);
173 CU_ASSERT_EQUAL( size, 184 );
size_t gserialized2_from_lwgeom_size(const LWGEOM *geom)
Return the memory size a GSERIALIZED will occupy for a given LWGEOM.
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)