[BUG] WCS Error?

Ben Tuttle funkbucket at GMAIL.COM
Wed Dec 6 13:48:41 EST 2006


Hi all-
I have two questions related to mapserver and WCS. First, I am running
mapserver 4.10.0 on linux. I am trying to set up WCS access to global
30 arcsec data sets.
Question 1:
  It seems that mapserver does not respect resx and resy. Example: if
I make the following request
http://www.ngdc.noaa.gov/eog/maps/test5.php?SERVICE=WCS&REQUEST=GetCoverage&Coverage=vis_mosaic&STYLES=&CRS=EPSG:4326&BBOX=-125,30,-115,40&resx=0.00833333&resy=0.00833333&Format=geotiff
the data comes back as  0.00834028,-0.00834028 instead of
0.00833333,-0.00833333 (the native resolution of the data is
0.00833333,-0.00833333). Additionally the given bounding box actually
covers an area 1201px by 1201px in the data. However, the returned
image is 1200px by 1200px. If compared to the original data one can
see that mapserver has resampled the returned image to fit the area
which is 1201 by 1201 into an image that is 1200 by 1200, which
explains the change in the resolution (I'd be happy to provide more
examples or information to anyone who is interested. It seems to me
that this may not be the the desired behaviour for WCS. I would expect
to get my data back at the same resolution requested. I haven;t seen
any bug reports on this (I did a search for WCS and only found 6
reports that matched wcs and none seemed to be about this issue). So
does someone know if I this is a bug or if I don't fully grasp WCS and
this is the desired response? Or is there a way to override this
behaviour or is there perhaps something wrong wiht my build?

Question 2:
  We would like to return data to people at the actual resolution they
requested. To this end I am working on using wxs mapscript and php to
examine the request and return the correct resolution. I want to be
sure I don't stomp all over the WCS standard in the process though. So
the question is does anyone have any thoughts onteh following process.
If a user specifies no resx/resy or width/height I would calculate the
appropriate width and height for the bbox to return full res data. If
they specify resx/resy, but not width and height I'll caculate the
appropriate width and height to return the data at the requested resx
and resy for the bbox. If a user specifies a width and height I will
assume they know how the width and height and bbox relate and return
the data as requested. Does anyone feel like this goes againt the WCS
standard?



More information about the mapserver-users mailing list