Opened 20 years ago

Last modified 15 years ago

#740 new defect

WMS Client doesn't choose good width/height in image request

Reported by: dstahlke@… Owned by: mapserverbugs
Priority: high Milestone:
Component: WMS Client Version: 4.2
Severity: normal Keywords:
Cc: tomkralidis

Description

When mapserver is setup to cascade with reprojection, it must grab an image of a
certain width/height and extents from a remote server.  Currently, the image
requested from the remote server is of the same dimensions as the image to be
produced.  It would be better to request an image that is the same area as the
image to be produced (in order to attempt to get good enough resolution), but
with an aspect ratio the same as the extents.  This way mapserver will be
requesting an image with square pixels, which will be good both to avoid
non-square-pixel errors and because square pixels will be a better use of
resolution.

Attachments (4)

fix.diff (2.8 KB ) - added by dstahlke@… 20 years ago.
a quick fix
testcase.tgz (1.0 KB ) - added by dstahlke@… 20 years ago.
a testcase demonstrating the bug
globe-broken.png (107.3 KB ) - added by dstahlke@… 20 years ago.
the globe as it appears without the patch
globe-fixed.png (133.6 KB ) - added by dstahlke@… 20 years ago.
The globe as it appears after the patch

Download all attachments as: .zip

Change History (6)

by dstahlke@…, 20 years ago

Attachment: fix.diff added

a quick fix

by dstahlke@…, 20 years ago

Attachment: testcase.tgz added

a testcase demonstrating the bug

by dstahlke@…, 20 years ago

Attachment: globe-broken.png added

the globe as it appears without the patch

by dstahlke@…, 20 years ago

Attachment: globe-fixed.png added

The globe as it appears after the patch

comment:1 by tomkralidis, 17 years ago

Cc: tomkralidis added

Can you verify your testcase is working? I tried reproducing but cannot get back anything from the JPL WMS (which is not at http://wms.jpl.nasa.gov/wms.cgi).

comment:2 by tomkralidis, 15 years ago

Is this still an issue?

Note: See TracTickets for help on using tickets.