<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="MSHTML 8.00.6001.19120">
</head>
<body>
<div dir="ltr" align="left"><span class="421292021-07112011"><font color="#0000ff" size="2" face="Arial">Hi,</font></span></div>
<div dir="ltr" align="left"><span class="421292021-07112011"><font color="#0000ff" size="2" face="Arial"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span class="421292021-07112011"><font color="#0000ff" size="2" face="Arial">Mapfile looks good to me. I fear I have only two suggestions left:</font></span></div>
<div dir="ltr" align="left"><span class="421292021-07112011"><font color="#0000ff" size="2" face="Arial">- try adding projection also to the layer even it should use the map level projection by default</font></span></div>
<div dir="ltr" align="left"><span class="421292021-07112011"><font color="#0000ff" size="2" face="Arial">- forget HDF5 for a moment and use some geotiff instead to check if there are some oddities due to source data format</font></span></div>
<div dir="ltr" align="left"><span class="421292021-07112011"><font color="#0000ff" size="2" face="Arial"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span class="421292021-07112011"><font color="#0000ff" size="2" face="Arial">-Jukka Rahkonen-</font></span></div>
<br>
<blockquote style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<div dir="ltr" lang="fi" class="OutlookMessageHeader" align="left">
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>Lähettäjä:</b> mapserver-users-bounces@lists.osgeo.org [mailto:mapserver-users-bounces@lists.osgeo.org]
<b>Puolesta </b>Guillaume Loiselle<br>
<b>Lähetetty:</b> 7. marraskuuta 2011 23:07<br>
<b>Vastaanottaja:</b> mapserver-users@lists.osgeo.org<br>
<b>Aihe:</b> Re: [mapserver-users] Re: WCS Geotiff output issue<br>
</font><br>
</div>
<div></div>
Hi,<br>
<br>
Both mapfile and datasource are available in the first email I sent.<br>
<br>
<a href="http://lists.osgeo.org/pipermail/mapserver-users/2011-November/070670.html">http://lists.osgeo.org/pipermail/mapserver-users/2011-November/070670.html</a><br>
<br>
Filenames appear to be a little bit messed up but the data itself is fine. I don't know why it went so wrong.<br>
<br>
Mapfile : <a href="http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111104/78e5fa24/2011102811-0001.obj">
http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111104/78e5fa24/2011102811-0001.obj</a><br>
<br>
Data (HDF5 format) : <a href="http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111104/78e5fa24/data-0001.obj">
http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111104/78e5fa24/data-0001.obj</a><br>
<br>
I intend to stick with 1.0.0 indeed. At least until it works... I will look up 1.1.0's details in due time.<br>
<br>
<br>
<br>
<br>
<div class="gmail_quote">2011/11/7 Rahkonen Jukka <span dir="ltr">&lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
Pity that is was not just version mismatch. &nbsp;Could it be possible to see your mapfile and info about the datasource?<br>
Stay with version 1.0.0 while testing. With version 1.1.0 you must give EPSG:4326 coordinates in Northing-Easting order which can make things more complicated.<br>
<br>
-Jukka Rahkonen-<br>
________________________________<br>
<div>
<div></div>
<div class="h5">Guillaume Loiselle wrote:<br>
<br>
Hi,<br>
<br>
I'm afraid it isn't. I didn't notice the request version I sent was a &quot;mixed&quot; one but I tried Coverage on 1.0.0 and Identifier on 1.1.0 as well and the result was basically the same.<br>
Here is the 1.1.0 version of the error :<br>
<br>
<br>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;<br>
&lt;ows:ExceptionReport xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot; xmlns:ows=&quot;<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>&quot; version=&quot;1.1.0&quot;
 xml:lang=&quot;en-US&quot; xsi:schemaLocation=&quot;<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>
<a href="http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd" target="_blank">
http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd</a>&quot;&gt;<br>
&nbsp;&lt;ows:Exception exceptionCode=&quot;bbox&quot; locator=&quot;NoApplicableCode&quot;&gt;<br>
&nbsp; &nbsp;&lt;ows:ExceptionText&gt;<br>
msWCSGetCoverage(): WCS server error. Requested BBOX (-178.804111261525,2802.84894277903,179.578125552223,2907.18853507175) is outside requested coverage BBOX (-70,45,-55,52)&lt;/ows:ExceptionText&gt;<br>
&nbsp;&lt;/ows:Exception&gt;<br>
&lt;/ows:ExceptionReport&gt;<br>
<br>
<br>
I of course spent a lot of time on the WCS server documentation page. I saw no reference to such a problem, though. My request,<br>
<br>
<a href="http://localhost/cgi-bin/mapserv.exe" target="_blank">http://localhost/cgi-bin/mapserv.exe</a>?<br>
map=D:/Guillaume/ProjetCourantsGlaces/WCSproblem/2011102811.map&amp;<br>
SERVICE=WCS&amp;<br>
VERSION=1.0.0&amp;<br>
REQUEST=GetCoverage&amp;<br>
COVERAGE=thelayer&amp;<br>
CRS=EPSG:4326&amp;<br>
BBOX=-67.5,48.922499263758255,-64.6875,50.736455137010665&amp;<br>
WIDTH=256&amp;<br>
HEIGHT=256&amp;<br>
FORMAT=GTiff<br>
<br>
is formatted the same way the example is :<br>
<br>
<a href="http://my.host.com/cgi-bin/mapserv" target="_blank">http://my.host.com/cgi-bin/mapserv</a>?<br>
map=mywcs.map&amp;<br>
SERVICE=wcs&amp;<br>
VERSION=1.0.0&amp;<br>
REQUEST=GetCoverage&amp;<br>
coverage=bathymetry&amp;<br>
CRS=EPSG:42304&amp;<br>
BBOX=-2200000,-712631,3072800,3840000&amp;<br>
WIDTH=3199&amp;<br>
HEIGHT=2833&amp;<br>
FORMAT=GTiff<br>
<br>
<br>
My mapfile contains every required attribute.<br>
<br>
Thank you.<br>
Guillaume Loiselle<br>
<br>
<br>
</div>
</div>
2011/11/7 Rahkonen Jukka &lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>&lt;mailto:<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>&gt;&gt;<br>
<div class="im">Hi,<br>
<br>
See examples in <a href="http://www.mapserver.org/ogc/wcs_server.html" target="_blank">
http://www.mapserver.org/ogc/wcs_server.html</a> and try to avoid mixing versions 1.0.0 and 1.1.0. Let's hope using &quot;coverage&quot; instead of &quot;identifier&quot; will be enough.<br>
<br>
-Jukka Rahkonen-<br>
________________________________<br>
</div>
Lähettäjä: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&gt; [<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&gt;]
 käyttäjän Guillaume Loiselle [<a href="mailto:loiselle.guillaume@gmail.com">loiselle.guillaume@gmail.com</a>&lt;mailto:<a href="mailto:loiselle.guillaume@gmail.com">loiselle.guillaume@gmail.com</a>&gt;] puolesta<br>
<div class="im">Lähetetty: 7. marraskuuta 2011 21:21<br>
</div>
Vastaanottaja: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&gt;<br>
<div class="im">Aihe: [mapserver-users] Re: WCS Geotiff output issue<br>
<br>
Hi,<br>
<br>
For some reason, the text part of the email didn't make it. It can be read below.<br>
Attachments can still be found in the first message :<br>
<a href="http://lists.osgeo.org/pipermail/mapserver-users/2011-November/070670.html" target="_blank">http://lists.osgeo.org/pipermail/mapserver-users/2011-November/070670.html</a><br>
<br>
Thanks.<br>
Guillaume Loiselle<br>
<br>
<br>
</div>
2011/11/4 Guillaume Loiselle &lt;<a href="mailto:loiselle.guillaume@gmail.com">loiselle.guillaume@gmail.com</a>&lt;mailto:<a href="mailto:loiselle.guillaume@gmail.com">loiselle.guillaume@gmail.com</a>&gt;&lt;mailto:<a href="mailto:loiselle.guillaume@gmail.com">loiselle.guillaume@gmail.com</a>&lt;mailto:<a href="mailto:loiselle.guillaume@gmail.com">loiselle.guillaume@gmail.com</a>&gt;&gt;&gt;<br>
<div>
<div></div>
<div class="h5">Hi,<br>
<br>
I installed MapServer 6.0.1 on Windows XP from MS4W. I cannot give you access to my MapServer instance but I can show you what &quot;-v&quot; gives me :<br>
<br>
MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PR<br>
OJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI<br>
&nbsp;SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT<br>
&nbsp;SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPO<br>
RTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br>
<br>
I am able to generate a GeoTiff file through the use of a WMS service (see attachment : wmsoutput.tif). The request is :<br>
<br>
<a href="http://localhost/cgi-bin/mapserv.exe?SERVICE=WMS&amp;map=D:/Guillaume/ProjetCourantsGlaces/WCSproblem/2011102811.map&amp;LAYERS=thelayer&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;bbox=-67.5,48.922499263758255,-64.6875,50.736455137010665&amp;SRS=EPSG:4326&amp;WIDTH=256&amp;HEIGHT=256&amp;FORMAT=GTiff" target="_blank">http://localhost/cgi-bin/mapserv.exe?SERVICE=WMS&amp;map=D:/Guillaume/ProjetCourantsGlaces/WCSproblem/2011102811.map&amp;LAYERS=thelayer&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;bbox=-67.5,48.922499263758255,-64.6875,50.736455137010665&amp;SRS=EPSG:4326&amp;WIDTH=256&amp;HEIGHT=256&amp;FORMAT=GTiff</a><br>
<br>
However, I cannot do so with a WCS service. I first tried with :<br>
<br>
<a href="http://localhost/cgi-bin/mapserv.exe?SERVICE=WCS&amp;map=D:/Guillaume/ProjetCourantsGlaces/WCSproblem/2011102811.map&amp;IDENTIFIER=thelayer&amp;VERSION=1.0.0&amp;REQUEST=GetCoverage&amp;BBOX=-67.5,48.922499263758255,-64.6875,50.736455137010665&amp;CRS=EPSG:4326&amp;WIDTH=256&amp;HEIGHT=256&amp;FORMAT=GTiff" target="_blank">http://localhost/cgi-bin/mapserv.exe?SERVICE=WCS&amp;map=D:/Guillaume/ProjetCourantsGlaces/WCSproblem/2011102811.map&amp;IDENTIFIER=thelayer&amp;VERSION=1.0.0&amp;REQUEST=GetCoverage&amp;BBOX=-67.5,48.922499263758255,-64.6875,50.736455137010665&amp;CRS=EPSG:4326&amp;WIDTH=256&amp;HEIGHT=256&amp;FORMAT=GTiff</a><br>
<br>
, to which I can add :<br>
<br>
&amp;RESPONSE_CRS=EPSG:4326<br>
<br>
for the same result (since 4326 is my native projection). Said result is not a tiff file, but an error :<br>
<br>
&lt;?xml version='1.0' encoding=&quot;ISO-8859-1&quot; ?&gt;<br>
&lt;ServiceExceptionReport version=&quot;1.2.0&quot;<br>
xmlns=&quot;<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>&quot; xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot; xsi:schemaLocation=&quot;<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>
<a href="http://schemas.opengis.net/wcs/1.0.0/OGC-exception.xsd" target="_blank">
http://schemas.opengis.net/wcs/1.0.0/OGC-exception.xsd</a>&quot;&gt;<br>
&nbsp;&lt;ServiceException code=&quot;NoApplicableCode&quot; locator=&quot;bbox&quot;&gt;msWCSGetCoverage(): WCS server error. Requested BBOX (-178.835708198757,2803.05273104522,179.552848002437,2906.98474680556) is outside requested coverage BBOX (-70,45,-55,52)<br>
&nbsp;&lt;/ServiceException&gt;<br>
&lt;/ServiceExceptionReport&gt;<br>
<br>
This error doesn't make sense to me. Which projection is it using to get these silly values? Anyway, the BBOX in the request is definitely included in the extent... Now what if I change the Response_CRS? I would expect it to give me the same error, since it
 doesn't affect the requested BBOX. Yet, this time no error is produced and I obtain a tiff file (see attachment : wcsoutput.tif). The data is all wrong (0 everywhere), though. And if I open both WMS and WCS obtained tiffs in QuantumGIS, they appear nowhere
 near each other (for the same bbox... yes).<br>
<br>
I attached the results of GetCapabilities and DescribeCoverage requests as well as the MapServer logs (modified to map logs with requests). The data source is an HDF5 file (see attachment : data.h5). I suspect an issue on MapServer's side but I would be happy
 if you could tell me it's all my fault (and how to fix it).<br>
<br>
Oh, a last thing : it may or may not be related. I had issues with the KML/KMZ WMS outputformats. Results for epsg:4326 and epsg:900913 were completely different (and wrong, of course). I might open a new discussion on this subject at some point.<br>
<br>
Thank you all for your help.<br>
Guillaume Loiselle<br>
<br>
P.S. : If you want to test, know that epsg:900913 is the same as epsg:3857 (which is more likely to be in your epsg reference file).<br>
<br>
<br>
</div>
</div>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote>
</div>
<br>
</blockquote>
</body>
</html>