Ticket #336 (closed defect: fixed)
Create union Fails
| Reported by: | PeteS | Owned by: | geos-devel@… |
|---|---|---|---|
| Priority: | trivial | Milestone: | |
| Component: | Default | Version: | 3.2.0 |
| Severity: | Unassigned | Keywords: | |
| Cc: |
Description
I'm most likely doing something stupid. I'm trying to create a simple union between two polygons...
I'm using version 3.2
GEOSContextHandle_t handle = initGEOS_r( exception_handler, exception_handler);
GEOSGeometry * poly1 = GEOSGeometryFromWKT_r (handle, "POLYGON((0 1,0 8,1 8,1 1,0 1))");
GEOSGeometry * poly2 = GEOSGeometryFromWKT_r (handle, "POLYGON((0 0,0 1,8 1,8 0,0 0))");
GEOSGeometry * poly2 = GEOSUnion_r(handle,poly1,poly2);
I get "assertion failed: intSegs.size() == 4, file FastNodingValidator?.cpp, line 60"
What am I doing wrong?
Change History
Note: See
TracTickets for help on using
tickets.
