Thank you very much! Your test code were very helpful!
this line is the key of my problem:
ReferencedEnvelope envelope = new ReferencedEnvelope(areaOfInterest, 
sourceCRS).transform(googleCRS, true);
before your very helpfull message I used:
ReferencedEnvelope envelope = new ReferencedEnvelope(areaOfInterest, 
googleCRS);

So, thank you very much!!


andyuk wrote:
> I have also been having issues with the google mercator projection.
>
> A couple things I have learnt:
>
>  - You need to specify the long/lat bounds yourself, especially if they are
> outside Envelope(-180, 180, -85.05113, 85.05113).
>  - Don't use JMapPane since it gets the bounds directly from the datasource.
>  - There are issues with StreamingRenderer and PostGIS. See my bug here:
> http://jira.codehaus.org/browse/GEOT-1771
>
> See if my test case helps you:
> http://jira.codehaus.org/secure/attachment/33922/MercatorTest.java
>
> Andy
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to