From: John D. <jdo...@ya...> - 2006-08-15 17:43:41
|
Martin, You are correct... but this is a pretty bad situation for our application. Example: This envelope: GeneralEnvelope ge = new GeneralEnvelope(2); ge.setRange(0, -150, -120); ge.setRange(1, 20, 70); returns a projected envelope of: [-160.817 12.508 , 176.101 72.81] which is clearly VERY wrong (far, far too east) -- almost looks like the sign got swapped on the calculation for the 176 However this envelope (only 10 degrees more north) looks like it might be correct: GeneralEnvelope ge = new GeneralEnvelope(2); ge.setRange(0, -150, -120); ge.setRange(1, 30, 70); Projected envelope: [-178.617 23.017 , -110.253 72.81] Is there no way to project a coverage that is close to the equator/poles/prime meridian? Martin Desruisseaux <mar...@ge...> wrote: (Note: please use "Reply to all" when replying, in order to keep the thread on geotools-gt2-users mailing list). John Dorado a écrit : > It's my internal class: > > MapUtil.LATLON_PROJECTION = GeographicCRS.WGS84; > > [...snip...] > > The output of System.out.println(ge) is: > [180°00.0'W 00°00.0'N , 00°00.0'E 90°00.0'N] > > From inspection of the image, it's hard for me to see how the right > longitude could possibly be so far east. One would assume that the > right longitude would be very close to the prime meridian. Try to restrict the image a little bit away from the pole, for example 89°N. Not all projection behave well at the pole. For example for a Mercator projection, you can get infinite value toward east or west. Martin. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |