From: James Macgill <jmacgill@ps...> - 2003-03-13 15:14:08
At 12:21 PM 3/13/2003 +1030, Geoghegan, Sean wrote:
>I have come across a difference in the way the Java2D renderer and
>Mapserver from http://mapserver.gis.umn.edu renders features.
>I was comparing two point layers given the same bounding box and data, two
>slightly different images were produced, these are attached. The bounding
>box I used was 127.0,-44.0,160.0,-24 with an image size of 600x400.
>So I was wondering, is this a problem with the Java2D renderer and the way
>it converts latlon to pixel coords, or is it a difference in the way
>geotools and mapserver handle boundingbox coordinates that dont exactly
>match the aspect ratio of the image. I'd like to get the images the same
>since I plan on layering geotools "layers" over layers retrieved from
The Java2D renderer does the wrong thing when presented with a bounding box
which does not match the aspect ratio of the output image. It pads it with
additional space such that, in effect, the image you get back does not
match the bbox you asked for. This is a known, but un-recorded bug which
does need to be fixed.
I've created a full bug report and attached your files, you can view it at:
All the best
Get latest updates about Open Source Projects, Conferences and News.