906 inspect = (
double*)g;
907 CU_ASSERT_EQUAL(inspect[3], 0.2);
911 geom =
lwgeom_from_wkt(
"POLYGON((-1 -1, -1 2.5, 2 2, 2 -1, -1 -1), (0 0, 0 1, 1 1, 1 0, 0 0))",
LW_PARSER_CHECK_NONE);
916 inspect = (
double*)g;
917 CU_ASSERT_EQUAL(inspect[9], 2.5);
926 inspect = (
double*)g;
927 CU_ASSERT_EQUAL(inspect[12], 0.1);
uint32_t gserialized_get_type(const GSERIALIZED *s)
Extract the geometry type from the serialized form (it hides in the anonymous data area,...
GSERIALIZED * gserialized_from_lwgeom(LWGEOM *geom, size_t *size)
Allocate a new GSERIALIZED from an LWGEOM.
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
#define FLAGS_SET_GEODETIC(flags, value)