Re: [geos-devel] [GEOS] #230: polygon intersection exception.
The second polygon is invalid - this is expected behaviour. GEOS wrote: #230: polygon intersection exception. +--- Reporter: anigold | Owner: geos-devel@lists.osgeo.org Type: defect | Status: new Priority: major | Milestone: 3.1.0 Component: Default | Version: 3.0.0 Severity: Unassigned |Keywords: +--- {{{ std::string str = POLYGON ((112.3903710739794900 22.3851129617344210, 114.1261324827294900 22.3851129617344210, 114.1261324827294900 23.5479374992368590, 112.3903710739794900 23.5479374992368590, 112.3903710739794900 22.3851129617344210)) ; geos::geom::Geometry* pgeom0 = reader.read( str ); str = POLYGON ((114.08765900 22.52494490, 114.18534400 22.55317900, 114.17040400 22.54383810, 114.14236300 22.53513500, 114.08742900 22.52451990, 114.08926800 22.52558200, 114.093635000100 22.52664300, 114.08765900 22.52494490)); geos::geom::Geometry* pgeom1 = reader.read( str ); geos::geom::Geometry* pint = pgeom0-intersection( pgeom1 ); }}} when execute the last line code, the util::TopologyException will be throwed. ___ geos-devel mailing list geos-devel@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/geos-devel -- Martin Davis Senior Technical Architect Refractions Research, Inc. (250) 383-3022 ___ geos-devel mailing list geos-devel@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/geos-devel
[geos-devel] [GEOS] #230: polygon intersection exception.
#230: polygon intersection exception. +--- Reporter: anigold | Owner: geos-devel@lists.osgeo.org Type: defect | Status: new Priority: major | Milestone: 3.1.0 Component: Default | Version: 3.0.0 Severity: Unassigned |Keywords: +--- {{{ std::string str = POLYGON ((112.3903710739794900 22.3851129617344210, 114.1261324827294900 22.3851129617344210, 114.1261324827294900 23.5479374992368590, 112.3903710739794900 23.5479374992368590, 112.3903710739794900 22.3851129617344210)) ; geos::geom::Geometry* pgeom0 = reader.read( str ); str = POLYGON ((114.08765900 22.52494490, 114.18534400 22.55317900, 114.17040400 22.54383810, 114.14236300 22.53513500, 114.08742900 22.52451990, 114.08926800 22.52558200, 114.093635000100 22.52664300, 114.08765900 22.52494490)); geos::geom::Geometry* pgeom1 = reader.read( str ); geos::geom::Geometry* pint = pgeom0-intersection( pgeom1 ); }}} when execute the last line code, the util::TopologyException will be throwed. -- Ticket URL: http://trac.osgeo.org/geos/ticket/230 GEOS http://geos.refractions.net/ GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).___ geos-devel mailing list geos-devel@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/geos-devel