51 "MULTIPOLYGON(((1725063 4819121, 1725104 4819067, 1725060 4819087, 1725064.14183882 4819094.70208557,1725064.13656044 4819094.70235069,1725064.14210359 4819094.70227252,1725064.14210362 4819094.70227252,1725064.13656043 4819094.70235069,1725055. 4819094, 1725055 4819094, 1725055 4819094, 1725063 4819121)))",
53 CU_ASSERT(gin != NULL);
69 gin =
lwgeom_from_hexwkb(
"0106000020E6100000010000000103000000010000000A0000004B7DA956B99844C0DB0790FE8B4D1DC010BA74A9AF9444C049AFFC5B8C4D1DC03FC6CC690D9844C0DD67E5628C4D1DC07117B56B0D9844C0C80ABA67C45E1DC0839166ABAF9444C0387D4568C45E1DC010BA74A9AF9444C049AFFC5B8C4D1DC040C3CD74169444C0362EC0608C4D1DC07C1A3B77169444C0DC3ADB40B2641DC03AAE5F68B99844C0242948DEB1641DC04B7DA956B99844C0DB0790FE8B4D1DC0",
LW_PARSER_CHECK_NONE);
70 CU_ASSERT(gin != NULL);
73 CU_ASSERT(gout != NULL);
88 "GEOMETRYCOLLECTION(LINESTRING(0 0, 0 0), POLYGON((0 0, 10 10, 10 0, 0 10, 0 0)), LINESTRING(10 0, 10 10))",
90 CU_ASSERT(gin != NULL);
93 CU_ASSERT(gout != NULL);
104 "GEOMETRYCOLLECTION(MULTIPOLYGON(((5 5,10 10,10 0,5 5)),((0 0,0 10,5 5,0 0))),LINESTRING(10 0,10 10),POINT(0 0))",
116 "MULTIPOINT(0 0,1 1,2 2)",
118 CU_ASSERT(gin != NULL);
121 CU_ASSERT(gout != NULL);
125 CU_ASSERT_STRING_EQUAL(ewkt,
126 "MULTIPOINT(0 0,1 1,2 2)");
135 "0103000000010000000400000000000000000024400000000000003640000000000000244000000000000040400000000000003440000000000000404000000000000034400000000000003640",
137 CU_ASSERT(gin != NULL);
140 CU_ASSERT(gout != NULL);
144 CU_ASSERT_STRING_EQUAL(ewkt,
145 "POLYGON((10 22,10 32,20 32,20 22,10 22))");
#define check_geom_equal(gobt, gexp)
void cu_error_msg_reset()
LWGEOM * lwgeom_from_hexwkb(const char *hexwkb, const char check)
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an alloced string.
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
LWGEOM * lwgeom_make_valid(LWGEOM *geom)
Attempts to make an invalid geometries valid w/out losing points.