Definition at line 14 of file cu_surface.c.
27 CU_ASSERT_STRING_EQUAL(
"TRIANGLE((0 1,2 3,4 5,0 1))", tmp);
35 CU_ASSERT_STRING_EQUAL(
"TRIANGLEM((0 1 2,3 4 5,6 7 8,0 1 2))", tmp);
41 CU_ASSERT_STRING_EQUAL(
"can not mix dimensionality in a geometry",
cu_error_msg);
47 CU_ASSERT_STRING_EQUAL(
"geometry contains non-closed rings",
cu_error_msg);
53 CU_ASSERT_STRING_EQUAL(
"geometry contains non-closed rings",
cu_error_msg);
59 CU_ASSERT_STRING_EQUAL(
"geometry contains non-closed rings",
cu_error_msg);
65 CU_ASSERT_STRING_EQUAL(
"triangle must have exactly 4 points",
cu_error_msg);
71 CU_ASSERT_STRING_EQUAL(
"triangle must have exactly 4 points",
cu_error_msg);
77 CU_ASSERT_STRING_EQUAL(
"parse error - invalid geometry",
cu_error_msg);
86 CU_ASSERT_STRING_EQUAL(
"TRIANGLE EMPTY", tmp);
94 CU_ASSERT_EQUAL(geom->
srid, 4326);
96 CU_ASSERT_STRING_EQUAL(
"SRID=4326;TRIANGLE((0 1 2,3 4 5,6 7 8,0 1 2))", tmp);
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 cu_error_msg_reset()
char cu_error_msg[MAX_CUNIT_ERROR_LENGTH+1]
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an alloced string.
char * lwgeom_to_wkt(const LWGEOM *geom, uint8_t variant, int precision, size_t *size_out)
WKT emitter function.
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
References cu_error_msg, cu_error_msg_reset(), gserialized_from_lwgeom(), gserialized_get_type(), LW_PARSER_CHECK_NONE, lwfree(), lwgeom_free(), lwgeom_from_wkt(), lwgeom_to_ewkt(), lwgeom_to_wkt(), LWGEOM::srid, TRIANGLETYPE, and LWGEOM::type.
Referenced by surface_suite_setup().