<div>Hi,</div>
<div> </div>
<div>sorry for that Norm, I was writting that mail while I was installing different fgs versions and I mixed some messages. Mapserver 5.2.1 is my current system. I have already tried different fgs versions but I always get the same error.</div>
<div> </div>
<div>And yes, gdal_ECW.so is in that path, in my case /home/route/fgs/apps/gdal/driver. I also tried to make a symbolic link to this library in /usr/local/lib because I thought that the problem could be that the application doesn't found this file, but it didn't make any difference.<br>
<br>Also, this is my list of installed modules:<br><br>agg-lib<br>apache-base<br>curl-lib<br>expat-base<br>freetype-lib<br>gdal-base<br>gdal_ecw-module<br>gd-lib<br>geos-lib<br>jpeg-lib<br>libecw-base<br>libgcc-lib<br>libgeotiff-lib<br>
libiconv-base<br>libpng-lib<br>libstdc++-lib<br>libungif-base<br>libxml2-base<br>mapserver-base<br>mapserver-php<br>openssl-lib<br>php-base<br>postgis-lib<br>postgresql-lib<br>proj4_epsg42xxx-support<br>proj-lib<br>python-base<br>
python_mapscript-module<br>tiff-lib<br>unixODBC-base<br>xerces_c-base<br>zlib-lib<br><br>Gustavo<br><br>
</div>
<div class="gmail_quote">2009/3/9 Normand Savard <span dir="ltr"><<a href="mailto:nsavard@mapgears.com" target="_blank">nsavard@mapgears.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<div>
<div></div>
<div>Gustavo Fariña Fernández wrote:<br>> Hello,<br>><br>> I am traying to set up a wms server in ubuntu 8.04 with mapserver<br>> through a fgs distribution<br>> (fgs-mapserver_5.2.1-fgs_1.0.0-linux-i386.bin ) but I am having some<br>
> problems with ECW support. ECW files are supposed to be supported by<br>> fgs by default but when I try to serve an ECW file I get this error<br>> 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.<br>> /home/route/fgs/www/cgi-bin/test/earth.ecw is not an EPPL file.<br>><br>> In my system, "mapserv -v" returns:<br>
><br>> MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP<br>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE<br>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER<br>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7<br>
> 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<br>> compressing 500+MB files"/><br>> </CreationOptionList><br>><br>> so I think ecw support is granted. And here is 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<br>
> "<a href="http://localhost:8000/cgi-bin/mapserv?map=test/earth2_server.map&" target="_blank">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<br>> that is not the problem. Maybe are there any problems about ecw<br>> support I am not aware of??<br>><br>><br><br></div>
</div>
Gustavo,<br><br>You wrote that you used fgs-mapserver_5.2.1-fgs_1.0.0-linux-i386.bin but<br>"mapserver -v" revealed that the mapserver version is 5.0.2. There<br>seems to be a wrong configuration somewhere.<br>
<br>Can you see the gdal_ECW.so file in<br>/home/nsavard/fgs-1.0.0/apps/gdal/driver?<br><br>Norm<br>_______________________________________________<br>Foss-gis-suite mailing list<br><a href="mailto:Foss-gis-suite@lists.maptools.org" target="_blank">Foss-gis-suite@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/foss-gis-suite" target="_blank">http://lists.maptools.org/mailman/listinfo/foss-gis-suite</a><br></blockquote></div><br>