Hello,<br>
<br>
I am traying to set up a wms server in ubuntu 8.04 with mapserver through a fgs distribution but I am having some
problems with ECW support. ECW files are supposed to be supported by
fgs by default but when I try to serve an ECW file I get this error
message:<br>
<br>msDrawMap(): Image handling error. Failed to draw layer named &#39;earth&#39;.<br>
msDrawRaster(): Image handling error. Unrecognized or unsupported image format<br>
drawEPP(): Image handling error. /home/route/fgs/www/cgi-bin/test/earth.ecw is not an EPPL file.<br><br>In my system, &quot;mapserv -v&quot; command returns:<br><br>MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br>
<br>and &quot;gdalinfo --format ecw&quot; returns:<br><br>Format Details:<br>  Short Name: ECW<br>  Long Name: ERMapper Compressed Wavelets<br>  Extension: ecw<br>  Help Topic: frmt_ecw.html<br>  Supports: CreateCopy() - Create dataset by copying another.<br>
  Creation Datatypes: Byte<br><br>&lt;CreationOptionList&gt;<br>  &lt;Option name=&quot;TARGET&quot; type=&quot;float&quot; description=&quot;Compression Percentage&quot;/&gt;<br>  &lt;Option name=&quot;PROJ&quot; type=&quot;string&quot; description=&quot;ERMapper Projection Name&quot;/&gt;<br>
  &lt;Option name=&quot;DATUM&quot; type=&quot;string&quot; description=&quot;ERMapper Datum Name&quot;/&gt;<br>  &lt;Option name=&quot;LARGE_OK&quot; type=&quot;boolean&quot; description=&quot;Enable compressing 500+MB files&quot;/&gt;<br>
&lt;/CreationOptionList&gt;<br><br>so I think ecw support is granted. And here an example of my map files:<br><br>MAP<br>    NAME            &quot;earth&quot;<br>    SIZE            600 600<br>    IMAGETYPE        PNG<br>
    IMAGECOLOR        255 255 255<br>    EXTENT            532715.000 4733220.000 594155.000 4794660.000<br>    <br>    SHAPEPATH        &quot;/home/route/fgs/www/cgi-bin/test&quot;<br>    <br>    DEBUG            ON<br>    CONFIG &quot;MS_ERRORFILE&quot; &quot;/tmp/servidor_wms_error.txt&quot;<br>
    <br>    PROJECTION<br>          &quot;init=epsg:23029&quot;<br>    END<br><br>    WEB<br>        METADATA<br>            WMS_TITLE                                &quot;Earth&quot;<br>            WMS_ONLINERESOURCE        &quot;<a href="http://localhost:8000/cgi-bin/mapserv?map=test/earth2_server.map&amp;">http://localhost:8000/cgi-bin/mapserv?map=test/earth2_server.map&amp;</a>&quot;<br>
            WMS_SRS                                    &quot;EPSG:23029&quot;<br>        END<br>    END<br><br>    LAYER<br>        NAME        &quot;earth&quot;<br>        DATA        &quot;earth.ecw&quot;<br>        TYPE        RASTER<br>
        STATUS        ON<br>        METADATA<br>            WMS_TITLE &quot;earth 2&quot;<br>            WMS_ABSTRACT &quot;earth 2&quot;<br>            WMS_SRS &quot;init=epsg:23029&quot;<br>        END<br>    END<br>END<br>
<br>I have tried several ecw files with different projections, so I guess that is not the problem. Maybe are there any problems about ecw support I am not aware of?? :S<br><br>Thanks in advance.<br>