166 CU_ASSERT_EQUAL( size, 32 );
171 CU_ASSERT_EQUAL( size, 40 );
176 CU_ASSERT_EQUAL( size, 80 );
181 CU_ASSERT_EQUAL( size, 48 );
186 CU_ASSERT_EQUAL( size, 96 );
191 CU_ASSERT_EQUAL( size, 104 );
194 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);
196 CU_ASSERT_EQUAL( size, 184 );
size_t gserialized_from_lwgeom_size(const LWGEOM *geom)
Calculate required memory segment to contain a serialized form of the LWGEOM.
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)