Ciao Amy,
could you provide a self contained test-case (or something close to it
:-) ) for me to have a look at? I am no able from the information you
provide to provide a final statement on what is happening.
Ciao,
Simone.
On 11/30/06, Amy Johnson <[EMAIL PROTECTED]> wrote:
> I'm compiling with 2.3.x and I did a straight replacement of
> ReferencedEnvelope for Envelope in
> StreamingRenderer.paint(|java.awt.Graphics2D graphics,
> java.awt.Rectangle paintArea,
> com.vividsolutions.jts.geom.Envelope mapArea). I am now getting the
> following error:
>
> Exception in thread "AWT-EventQueue-0"
> java.lang.IllegalArgumentException: The provided envelope is outside the
> source CRS definition area
> at
> org.geotools.renderer.lite.RendererUtilities.calculateScale(RendererUtilities.java:500)
> at
> org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:636)
> at
> org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:419)
>
> Here is my code:
>
> mapArea = mapContext.getAreaOfInterest();
> renderer = new StreamingRenderer();
> renderer.setContext(mapContext);
>
> RenderingHints hints = new
> RenderingHints(RenderingHints.KEY_ANTIALIASING,
> RenderingHints.VALUE_ANTIALIAS_ON );
> renderer.setJava2DHints(hints);
>
> Map rendererParams = new HashMap();
> rendererParams.put("optimizedDataLoadingEnabled",new
> Boolean(true) );
>
> renderer.paint(g2, paintArea, mapArea);
>
> I checked to see if mapArea was getting set correctly and it appears to
> be. Am I doing something wrong? I'm not sure how to use
> ReferencedEnvelope, but I thought it just extended the Envelope I was
> using. Any help is appreciated.
>
> Regards,
>
> Amy
>
> |
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
--
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions
http://www.geo-solutions.it
-------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users