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 Dennis Y wrote: > > I wrote a simple test application. Which I would like to render in > mercator projection. > But it does not do It! > I found US states map in geoserver installation (it consists of: > states.dbf, states.prj, states.shp, states.shx) > On this image: http://ds.azcltd.com/quickStart/compareProjectionsUSA.gif > you can see: > Left part - google map image > Middle part - my test program image if states.prj removed > Right part - my test program image if states.prj does NOT removed > > My test application looks like this code: > ... > -- View this message in context: http://www.nabble.com/how-to-change-projection-tp16494337p16722523.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
