Hi, thanks a lot for your response, that was the problem (no ecw support for gdal).<div>I solved it using Jeff McKenna method:</div><div><br></div><div><a href="http://osgeo-org.1803224.n2.nabble.com/ECW-Problems-td1971907.html">http://osgeo-org.1803224.n2.nabble.com/ECW-Problems-td1971907.html</a></div>
<div><br></div><div>Best wishes.<br><br><div class="gmail_quote">2011/11/4 Richard Greenwood <span dir="ltr">&lt;<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Thu, Nov 3, 2011 at 5:31 AM, luis peinado &lt;<a href="mailto:luis.peinado@geodata.es">luis.peinado@geodata.es</a>&gt; wrote:<br>
&gt; Hi list,<br>
&gt; I&#39;ve been working for days trying to render a .ecw file using a raster<br>
&gt; layer.<br>
&gt; The same map file and ecw file work fine with other 2 servers (using Linux<br>
&gt; and different mapserver versions:4.6 and 5.6) as shown here:<br>
&gt; <a href="http://www.anthos.es/wms46/rjb/anthos/raster?REQUEST=GetMap&amp;VERSION=1.1.1&amp;LAYERS=nasa_240&amp;STYLES=&amp;SRS=EPSG:4326&amp;FORMAT=image/jpeg&amp;BBOX=-18.88692529000388,31.01113086496096,-7.695976464653308,40.51093762077761&amp;WIDTH=761&amp;HEIGHT=646&amp;BGCOLOR=0xffffff&amp;TRANSPARENT=TRUE&amp;EXCEPTIONS=application/vnd.ogc.se_xml&amp;SERVICE=WMS" target="_blank">http://www.anthos.es/wms46/rjb/anthos/raster?REQUEST=GetMap&amp;VERSION=1.1.1&amp;LAYERS=nasa_240&amp;STYLES=&amp;SRS=EPSG:4326&amp;FORMAT=image/jpeg&amp;BBOX=-18.88692529000388,31.01113086496096,-7.695976464653308,40.51093762077761&amp;WIDTH=761&amp;HEIGHT=646&amp;BGCOLOR=0xffffff&amp;TRANSPARENT=TRUE&amp;EXCEPTIONS=application/vnd.ogc.se_xml&amp;SERVICE=WMS</a><br>

&gt; On my new server (Scientific Linux and mapserver 5.6) I get a file with no<br>
&gt; images inside, and mapserver log does not explain any error, everything<br>
&gt; seems to be alright for it.<br>
&gt; The image shown is this:<br>
&gt; <a href="http://161.111.171.50/wms46/rjb/anthos/raster?REQUEST=GetMap&amp;VERSION=1.1.1&amp;LAYERS=nasa_240&amp;STYLES=&amp;SRS=EPSG:4326&amp;FORMAT=image/jpeg&amp;BBOX=-18.88692529000388,31.01113086496096,-7.695976464653308,40.51093762077761&amp;WIDTH=761&amp;HEIGHT=646&amp;BGCOLOR=0xffffff&amp;TRANSPARENT=TRUE&amp;EXCEPTIONS=application/vnd.ogc.se_xml&amp;SERVICE=WMS" target="_blank">http://161.111.171.50/wms46/rjb/anthos/raster?REQUEST=GetMap&amp;VERSION=1.1.1&amp;LAYERS=nasa_240&amp;STYLES=&amp;SRS=EPSG:4326&amp;FORMAT=image/jpeg&amp;BBOX=-18.88692529000388,31.01113086496096,-7.695976464653308,40.51093762077761&amp;WIDTH=761&amp;HEIGHT=646&amp;BGCOLOR=0xffffff&amp;TRANSPARENT=TRUE&amp;EXCEPTIONS=application/vnd.ogc.se_xml&amp;SERVICE=WMS</a><br>

&gt; Mapserver&#39;s log:<br>
&gt; [Thu Nov  3 12:28:40 2011].651297 CGI Request 1 on process 32018<br>
&gt; [Thu Nov  3 12:28:40 2011].655439 msDrawMap(): Layer 3 (nasa_240), 0.000s<br>
&gt; [Thu Nov  3 12:28:40 2011].655485 msDrawMap(): Drawing Label Cache, 0.000s<br>
&gt; [Thu Nov  3 12:28:40 2011].655491 msDrawMap() total time: 0.003s<br>
&gt; [Thu Nov  3 12:28:40 2011].698421 msSaveImage() total time: 0.043s<br>
&gt; [Thu Nov  3 12:28:40 2011].699261 mapserv request processing time (msLoadMap<br>
&gt; not incl.): 0.048s<br>
&gt; [Thu Nov  3 12:28:40 2011].699271 msFreeMap(): freeing map at 0x8927220.<br>
&gt; [Thu Nov  3 12:28:40 2011].946127 CGI Request 1 on process 32019<br>
&gt; [Thu Nov  3 12:28:40 2011].950267 msDrawMap(): Layer 3 (nasa_240), 0.000s<br>
&gt; [Thu Nov  3 12:28:40 2011].950312 msDrawMap(): Drawing Label Cache, 0.000s<br>
&gt; [Thu Nov  3 12:28:40 2011].950318 msDrawMap() total time: 0.003s<br>
&gt; [Thu Nov  3 12:28:40 2011].993148 msSaveImage() total time: 0.043s<br>
&gt; [Thu Nov  3 12:28:40 2011].993921 mapserv request processing time (msLoadMap<br>
&gt; not incl.): 0.048s<br>
&gt; [Thu Nov  3 12:28:40 2011].993930 msFreeMap(): freeing map at 0x1ec32220.<br>
&gt;<br>
&gt; And mapserver&#39;s version information:<br>
&gt;  /var/www/cgi-bin/mapserv -v<br>
&gt; MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP<br>
&gt; OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV<br>
&gt; SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER<br>
&gt; SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS<br>
&gt; SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br>
&gt; So, can someone help telling me where to look for the error?<br>
&gt; Thanks a lot for any help or suggestion.<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; Lluís<br>
<br>
</div></div>ECW is a proprietary format and thus may not have been installed with<br>
your Linux distro. I&#39;m not familiar with Scientific Linux so I don&#39;t<br>
know. If you do have ECW support it would be handled by GDAL, which<br>
you have as evidenced by INPUT=GDAL, so you need to determine if GDAL<br>
has ECW support, which is pretty easy. In the shell:<br>
   gdalinfo --formats<br>
or better yet<br>
   gdalinfo --formats | grep -i ecw<br>
will list the formats tha GDAL can handle in your setup.<br>
<br>
If ECW isn&#39;t in the list then you need to install or build supporting<br>
libraries, but I have no idea how you do that in Scientific Linux.<br>
<br>
HTH,<br>
Rich<br>
<font color="#888888"><br>
--<br>
Richard Greenwood<br>
<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a><br>
<a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a><br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br><div align="left">
<p align="left"><strong><b><font size="2" color="navy"><span style="font-family:Arial;color:navy;font-size:10pt" lang="CA">Lluís Peinado</span></font></b></strong></p>
<p><strong><b><font size="2" color="navy"><span style="font-family:Arial;color:navy;font-size:10pt" lang="CA"></span></font></b></strong><em><i><font size="2" color="navy"><span style="font-family:Arial;color:navy;font-size:10pt" lang="CA">Geodata Sistemas,SL.</span></font></i></em><font color="navy"><span style="color:navy" lang="CA"></span></font></p>

<p><font size="2" color="navy"><span style="font-family:Arial;color:navy;font-size:10pt" lang="CA"><a title="mailto:luis.peinado@geodata.es" href="mailto:luis.peinado@geodata.es" target="_blank">luis.peinado@geodata.es</a></span></font><font color="navy"><span style="color:navy" lang="CA"></span></font></p>

<p><font size="3" color="navy"><span style="color:navy;font-size:12pt" lang="CA"> </span></font></p>
<p><font size="2" color="navy"><span style="font-family:Arial;color:navy;font-size:10pt" lang="CA">T. 933 035 367 
(ext. 21)</span></font><font color="navy"><span style="color:navy" lang="CA"></span></font></p>
<p><font size="2" color="navy"><span style="font-family:Arial;color:navy;font-size:10pt" lang="CA">F. 933 080 
071</span></font></p></div><br>
</div>