Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3 side location conflict

closed
nobody
None
5
2013-12-30
2005-03-07
jive
No

From uDig email:

It is JTS 1.6. You can't do anything aobut it until
JTS 1.7 comes out. Talk to Dave blasby about it. He
explained this error to me.

Here is the stack trace:
> com.vividsolutions.jts.geom.TopologyException: side
location conflict [ (-126.129602863778,
53.7657752577268, NaN) ]
> at
com.vividsolutions.jts.geomgraph.EdgeEndStar.propagateSideLabels(EdgeEndStar.java:297)
> at
com.vividsolutions.jts.geomgraph.EdgeEndStar.computeLabelling(EdgeEndStar.java:135)
> at
com.vividsolutions.jts.operation.relate.RelateComputer.labelNodeEdges(RelateComputer.java:297)
> at
com.vividsolutions.jts.operation.relate.RelateComputer.computeIM(RelateComputer.java:132)
> at
com.vividsolutions.jts.operation.relate.RelateOp.getIntersectionMatrix(RelateOp.java:71)
> at
com.vividsolutions.jts.operation.relate.RelateOp.relate(RelateOp.java:58)
> at
com.vividsolutions.jts.geom.Geometry.relate(Geometry.java:738)
> at
com.vividsolutions.jts.geom.Geometry.intersects(Geometry.java:623)
> at
org.geotools.filter.GeometryFilterImpl.contains(GeometryFilterImpl.java:237)
> at
org.geotools.data.FilteringFeatureReader.hasNext(FilteringFeatureReader.java:120)
> at
org.geotools.renderer.lite.LiteRenderer2.processStylers(LiteRenderer2.java:789)
> at
org.geotools.renderer.lite.LiteRenderer2.paint(LiteRenderer2.java:362)
> at
net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(BasicFeatureRenderer.java:75)
> at
net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.renderAll(BasicFeatureRenderer.java:144)
> at
net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(BasicFeatureRenderer.java:190)
> at
net.refractions.udig.project.render.impl.RenderExecutorImpl$RenderJob.startRendering(RenderExecutorImpl.java:179)
> at
net.refractions.udig.project.render.impl.RenderExecutorImpl$RenderJob.run(RenderExecutorImpl.java:206)
> at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

Discussion

  • Dr JTS
    Dr JTS
    2005-03-08

    Logged In: YES
    user_id=1158312

    This is normally an indication of invalid geometry
    arguments. If you can provide the geometry causing the
    problem I can check to see if this is the problem.

     
  • Markus Gebhard
    Markus Gebhard
    2005-03-15

    Logged In: YES
    user_id=680457

    I have had the same problem with JTS1.6. I have found the
    actual problem by using this code on the geometry after
    catching the TopologyException:

    IsValidOp isValidOp = new IsValidOp(geometry);
    System.err.println("Geometry is invalid: " + isValidOp.
    getValidationError());

    The code prints more detailed information about the error. In
    my case a hole was partially outside of the polygon.

    Try to check this for your geometries, too.

     
  • Dr JTS
    Dr JTS
    2006-04-20

    • status: open --> closed