[jts-devel] Re: [postgis-users] problem with intersection
strk at refractions.net
strk at refractions.net
Thu Apr 7 02:04:26 PDT 2005
I confirm the same error is returned compiling postgis against libjts
(from JTS cvs as of some weeks ago):
psql:intersect_bug.sql:4: NOTICE: no outgoing dirEdge found [ (588928.6000000002, 2432123.7, NaN) ]
psql:intersect_bug.sql:4: ERROR: JTS Intersection() threw an error!
--strk;
On Thu, Apr 07, 2005 at 03:15:25AM -0400, dblasby at openplans.org wrote:
> Martin Davis,
>
> Here's another test case for intersection() for your JTS testcase pile.
> This one's from the PostGIS list.
>
> com.vividsolutions.jts.geom.TopologyException: no outgoing dirEdge found
> [ (588928.6000000002, 2432123.7, NaN) ]
> at
> com.vividsolutions.jts.geomgraph.DirectedEdgeStar.linkResultDirectedEdges(DirectedEdgeStar.java:241)
> ..
>
>
>
> public class test {
>
> public static void main(String[] args)
> {
> try
> {
> WKTReader r = new WKTReader();
> Geometry g1 = r.read("POLYGON((588912.7 2432104.5,588927.7 2432124,
> 588928.9 2432123.6, 588923.7 2432132.3,588912.7 2432104.5))");
> Geometry g2 = r.read("POLYGON((588916.4 2432124.4, 588920.7
> 2432129.9,588928.6 2432123.7,588930.1 2432122.6,588916.4 2432124.4))");
> System.out.println("isvalid(g1) = "+ g1.isValid());
> System.out.println("isvalid(g2) = "+ g2.isValid());
> Geometry g3 = g1.intersection(g2);
> System.out.println("g3="+g3.toText());
> }
> catch(Exception e)
> {
> e.printStackTrace();
> }
> }
> }
>
> ----------------------------------------------------------
> This mail sent through IMP: https://webmail.limegroup.com/
> _______________________________________________
> jts-devel mailing list
> jts-devel at lists.jump-project.org
> http://lists.refractions.net/mailman/listinfo/jts-devel
More information about the postgis-users
mailing list