<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Frank,<br>
<br>
Thanks for your reply.&nbsp; Is there anyway to request that the "old
school" mapscript request return an image using non-square pixels, in
the same manner that is carried out when requesting via the WMS
request, rather than have it grow the image in one direction?<br>
<br>
Ideally I would ensure that the client is always requesting an image
size and bounding box that met the same aspect ratio, but the framework
within which I am working makes this very difficult to accomplish..<br>
<br>
Thanks,<br>
<br>
--Adam<br>
<br>
Frank Warmerdam wrote:<br>
<blockquote cite="mid931f8ea905091214005407222a@mail.gmail.com"
 type="cite">
  <pre wrap="">On 9/12/05, Adam Quiney <a class="moz-txt-link-rfc2396E" href="mailto:aquiney@refractions.net">&lt;aquiney@refractions.net&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hello,

I've noticed a discrepancy between calls I'm making to our mapserver
instance using WMS server calls and mapscript CGI calls.

The two calls I'm making are below:

WMS Server call:

<a class="moz-txt-link-freetext" href="http://turtle/cgi-bin/mapserv?map=/data/Refractions/BMGS/CWB/Web/WMS/SMT.map&request=getcapabilities&service=wms&version=1.1.1&request=GetMap&layers=SingleLineRiversCanalsMin&BBOX=1186497,398241,1190659,401758">http://turtle/cgi-bin/mapserv?map=/data/Refractions/BMGS/CWB/Web/WMS/SMT.map&amp;request=getcapabilities&amp;service=wms&amp;version=1.1.1&amp;request=GetMap&amp;layers=SingleLineRiversCanalsMin&amp;BBOX=1186497,398241,1190659,401758</a>

Mapscript CGI call:

<a class="moz-txt-link-freetext" href="http://turtle/cgi-bin/mapserv?map=/data/Refractions/BMGS/CWB/Web/WMS/SMT.map&MODE=MAP&LAYER=SingleLineRiversCanalsMin&MINX=1186497&MINY=398241&MAXX=1190659&MAXY=401758">http://turtle/cgi-bin/mapserv?map=/data/Refractions/BMGS/CWB/Web/WMS/SMT.map&amp;MODE=MAP&amp;LAYER=SingleLineRiversCanalsMin&amp;MINX=1186497&amp;MINY=398241&amp;MAXX=1190659&amp;MAXY=401758</a>

In both cases, I am requesting the same bounding box, and the same layer.
However, the CGI call includes a fork at the bottom of the right-most
segment, and is missing a portion of the segment at the top, when compared
to the WMS server call.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Adam,

WMS requests will by default return non-square pixels if requested
while "old style" cgi requests will grow the bbox in one direction or the
other if needed in order to ensure square pixels.  You don't select 
explicit sizes in the requests above so I don't know if there is an 
aspect ratio issue or not, but it seems like the most likely cause. 

Best regards,
  </pre>
</blockquote>
</body>
</html>