Ticket #392 (closed defect: fixed)
TopologyException unioning valid linestrings [JTS fails too]
| Reported by: | jsewell | Owned by: | strk |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Core | Version: | svn-trunk |
| Severity: | Unassigned | Keywords: | Union topologyexception |
| Cc: |
Description
When performing a Union (with an empty linestring or as an aggregate) on linestring geometries with many similar lines PostGIS reports a GEOS error as follows:
"NOTICE: TopologyException?: found non-noded intersection between LINESTRING (xxx xxx) and LINESTRING (xxx xxx) at xxx xxx ERROR: GEOS union() threw an error!"
The attached WKB data can be used to create the error in the following ways (when the two geoms are imported into lw).
CREATE TABLE lwu AS
SELECT
st_union(st_collect(the_geom), ST_SetSRID('LINESTRINGEMPTY', 4283))
AS the_geom FROM lw;
CREATE TABLE lwu AS
SELECT
st_union(the_geom)
AS the_geom FROM lw;

