Definition at line 894 of file cu_geodetic.c.
References LWGEOM::flags, FLAGS_SET_GEODETIC, gserialized_from_lwgeom(), gserialized_get_type(), LW_PARSER_CHECK_NONE, lwfree(), lwgeom_free(), lwgeom_from_wkt(), MULTILINETYPE, POINTTYPE, POLYGONTYPE, and ovdump::type.
Referenced by geodetic_suite_setup().
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...
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
#define FLAGS_SET_GEODETIC(flags, value)
#define LW_PARSER_CHECK_NONE
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
GSERIALIZED * gserialized_from_lwgeom(LWGEOM *geom, size_t *size)
Allocate a new GSERIALIZED from an LWGEOM.