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 'earth'.<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, "mapserv -v" 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 "gdalinfo --format ecw" 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><CreationOptionList><br> <Option name="TARGET" type="float" description="Compression Percentage"/><br> <Option name="PROJ" type="string" description="ERMapper Projection Name"/><br>
<Option name="DATUM" type="string" description="ERMapper Datum Name"/><br> <Option name="LARGE_OK" type="boolean" description="Enable compressing 500+MB files"/><br>
</CreationOptionList><br><br>so I think ecw support is granted. And here an example of my map files:<br><br>MAP<br> NAME "earth"<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 "/home/route/fgs/www/cgi-bin/test"<br> <br> DEBUG ON<br> CONFIG "MS_ERRORFILE" "/tmp/servidor_wms_error.txt"<br>
<br> PROJECTION<br> "init=epsg:23029"<br> END<br><br> WEB<br> METADATA<br> WMS_TITLE "Earth"<br> WMS_ONLINERESOURCE "<a href="http://localhost:8000/cgi-bin/mapserv?map=test/earth2_server.map&">http://localhost:8000/cgi-bin/mapserv?map=test/earth2_server.map&</a>"<br>
WMS_SRS "EPSG:23029"<br> END<br> END<br><br> LAYER<br> NAME "earth"<br> DATA "earth.ecw"<br> TYPE RASTER<br>
STATUS ON<br> METADATA<br> WMS_TITLE "earth 2"<br> WMS_ABSTRACT "earth 2"<br> WMS_SRS "init=epsg:23029"<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>