Cory Horner wrote:

Hi folks,

We've been getting strange errors in uDig when rendering from PostGIS (and possibly others). Everything appeared to draw correctly, but some exceptions occurred including this:

Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at org.geotools.renderer.lite.LiteShape2.getBounds2D(LiteShape2.java:538)
   at sun.java2d.pipe.AlphaPaintPipe.startSequence(Unknown Source)
at sun.java2d.pipe.SpanShapeRenderer$Composite.startSequence(Unknown Source)
   at sun.java2d.pipe.SpanShapeRenderer.renderSpans(


This has happened for a long time, but now the decimation is more
aggressive so it occurs more often.

I havent been able to get the Geoserver WMS to call that function during a render- how are you getting it called? Whats the full stack trace?

Here's a better way to do it (use "getEnvelopeInternal()") :

public Rectangle2D getBounds2D() {
       Envelope env = geometry.getEnvelopeInternal();

      return new Rectangle2D.Double(env.getXMin(), env.getYMin(),
env.getWidth(), env.getHeight() );
}





-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to