Ticket #740 (new defect)

Opened 8 years ago

Last modified 3 years ago

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

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

Change History

Changed 8 years ago by dstahlke@…

a quick fix

Changed 8 years ago by dstahlke@…

a testcase demonstrating the bug

Changed 8 years ago by dstahlke@…

the globe as it appears without the patch

Changed 8 years ago by dstahlke@…

The globe as it appears after the patch

Changed 5 years ago by tomkralidis

  • 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).

Changed 3 years ago by tomkralidis

Is this still an issue?

Note: See TracTickets for help on using tickets.