Mapserver response

Norman Barker nbarker at RSINC.COM
Fri May 13 09:50:52 EDT 2005




-----Original Message-----
From: Frank Warmerdam [mailto:fwarmerdam at gmail.com]
Sent: Fri 5/13/2005 2:09 PM
To: Norman Barker
Cc: MAPSERVER-USERS at lists.umn.edu
Subject: Re: [UMN_MAPSERVER-USERS] Mapserver response
 
On 5/13/05, Norman Barker <nbarker at rsinc.com> wrote:
> Hi,
> 
> what is the condition that cause MapServer to either retrieve the file and send it back to the user, or to resample the file?  Looking at the socket if MapServer doesn't really do anything to the file then the response (tiff in my case) is sent back as text, but if it does do anything then the response is sent back with a GET header and content-type set, and the reponse-body.

Norman, 

First, in normal use MapServer never sends back source raster files
unaltered.  Even if you are serving from a jpeg file, and request the image
at exactly full resolution, you still won't get the original file. 
Instead it will
be decompressed, resampled (even if only 1:1 nearest neighbour),
rendered in memory and then written out and recompressed to JPEG 
to be returned to the client. 

Perhaps you are wondering when the simple "zoom" resampling is
used as opposed to the more generic warper resampling used for
reprojection (and odd pixel aspect ratios)?  These are certainly 
quite distinct modes.  The warper resampling kicks in when the
layer and map projections differ or if the requested result will have
non-square pixels. 

> My reason for asking is find some way of getting the data back unaltered as work around to a bug with resampling.

Is this the problem in bug report 1183?  

> I guess the response mechanism in MapServer is the same for the WMS and WCS.

Essentially, yes.

Best regards,
-- 


Thanks Frank,

I was trying to find a way to force a file through MapServer WCS because of bug 1183, it works with some
files (with square resolution), but not others hence the question.  

Would there be a way to specify a 'RAW' extension to MapServer WCS to retrieve the base file unaltered?  I am thinking in particular of retrieving data with custom geotiff tags, or say a Jpeg2000 file with custom XML inside it?

Any thing we can do to help with the WCS resolution/reprojection bug please let us know.

Many thanks,

Norman Barker

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050513/a811c427/attachment.html


More information about the mapserver-users mailing list