Opened 13 years ago
Last modified 13 years ago
#4079 new defect
WCS Server - Map Level Projection Object Potential Bug
| Reported by: | loisg00 | Owned by: | sdlime |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.0.1 release |
| Component: | WCS Server | Version: | 6.0 |
| Severity: | normal | Keywords: | WCS Projection |
| Cc: | warmerdam@… |
Description
Hi,
The issue was first described here : http://lists.osgeo.org/pipermail/mapserver-users/2011-November/070672.html
You might want to take a look if you are in need of any information I could have missed. I'll try to cover everything here, of course.
OS : Windows XP MapServer version : 6.0.1, prebuilt from MS4W.
MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PR OJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT
SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
SUPPO RTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
Faulty MapFile : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111104/78e5fa24/2011102811-0001.obj
Some GetCoverage requests along with their result :
(with or without "&RESPONSE_CRS=EPSG:4326", the native projection) Gives the following error :
<?xml version='1.0' encoding="ISO-8859-1" ?> <ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wcs/1.0.0/OGC-exception.xsd">
<ServiceException code="NoApplicableCode" locator="bbox">msWCSGetCoverage(): WCS server error. Requested BBOX (-178.835708198757,2803.05273104522,179.552848002437,2906.98474680556) is outside requested coverage BBOX (-70,45,-55,52) </ServiceException>
Notice how the Requested BBOX in the error doesn't make sense.
Adding "&RESPONSE_CRS=EPSG:900913" (or 3857) instead to the request should logically still give an error, because the BBOX itself isn't changed (it's the response_CRS, not the CRS...). Yet, it returns a geotiff. The file is all black (0 0 0), though :
http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111104/78e5fa24/wcsoutput-0001.tif
My inability to create a correct GeoTiff output was the original issue. Rahkonen Jukka found the solution : Adding a projection object to the layer level allowed me to get a good GeoTiff, similar to the one obtained with a WMS request (http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111104/78e5fa24/wmsoutput-0001.tif).
PROJECTION
'init=epsg:4326'
END
However, this is an unexpected behaviour. The Map level projection object should be used when the layer is lacking one. I've been asked to create a ticket regarding the issue.
http://lists.osgeo.org/pipermail/mapserver-users/2011-November/070700.html
Although the original problem was about GeoTiff, it can probably be extended to other output formats.
The HDF5 source file can be found here : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111104/78e5fa24/data-0001.obj
The problem may or may not be specific to this input format. I don't know how MapServer handles this.
Logs produced by MapServer for several requests seen in this ticket are here : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111104/78e5fa24/mapserv_errors-0001.obj
I tried to fit in as much information as I could. I'm sorry if I forgot something or haven't respected conventions I was unaware of. You can contact me if you need to at loiselle.guillaume@… .
Guillaume Loiselle
P.S. The "New Ticket" link found in the sentence "To enter an issue use the New Ticket button." from http://trac.osgeo.org/mapserver/ redirects to http://trac.osgeo.org/mapserver/mapserver/newticket, which is wrong and gives this error :
Error: Not Found
No handler matched request to /mapserver/newticket
The correct URL is http://trac.osgeo.org/mapserver/newticket. Is there a metaticket system to create tickets on ticket issues? :p

Replying to loisg00:
Another user had an issue with projection within the WCS server. It shares some similarities with mine and could have the same source. I'm adding a link to this discussion and I will invite him to add more information here himself :
http://lists.osgeo.org/pipermail/mapserver-users/2011-November/070872.html