Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
WCS Server - Map Level Projection Object Potential Bug #4079
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
Some GetCoverage requests along with their result :
(with or without "&RESPONSE_CRS=EPSG:4326", the native projection)
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 :
My inability to create a correct GeoTiff output was the original issue. Rahkonen Jukka found the solution :
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.
Although the original problem was about GeoTiff, it can probably be extended to other output formats.
The HDF5 source file can be found here :
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 :
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 email@example.com .
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
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 :
@sdlime @dmorissette mapcache and the native mapserver tile mode both use a function called
Yes, the possible side-effect is that projections are not required unless you plan on doing reprojections, and if you don't then the unnecessary projection blocks in all layers trigger extra tests based on msProjectionsDiffer() to decide if reprojection should kick in. While these tests should in theory not be too expensive, that would have to be verified. Plus loading init=epsg:xxxx codes for every layer is not exactly free, so that will add up as well for cases where no reprojection is needed.
Also, users of MapScript may have empty layers defined in their mapfile for various purposes, or may do some stuff based on the assumption that layers do not have a projection set, and unexpectedly setting the PROJECTION in those layers may possibly lead to unexpected side-effects that they may have to work around.
@dmorissette OK I see your point. I will check that the WCS code does something similar than what the wms code does in https://github.com/mapserver/mapserver/blob/rel-6-2-0-beta2/mapwms.c#L1374