[FGS] fgs and ecw support problem
Gustavo Fariña Fernández
gus.videalab at gmail.com
Mon Mar 9 20:40:55 EST 2009
Hi,
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.
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.
Also, this is my list of installed modules:
agg-lib
apache-base
curl-lib
expat-base
freetype-lib
gdal-base
gdal_ecw-module
gd-lib
geos-lib
jpeg-lib
libecw-base
libgcc-lib
libgeotiff-lib
libiconv-base
libpng-lib
libstdc++-lib
libungif-base
libxml2-base
mapserver-base
mapserver-php
openssl-lib
php-base
postgis-lib
postgresql-lib
proj4_epsg42xxx-support
proj-lib
python-base
python_mapscript-module
tiff-lib
unixODBC-base
xerces_c-base
zlib-lib
Gustavo
2009/3/9 Normand Savard <nsavard at mapgears.com>
> Gustavo Fariña Fernández wrote:
> > Hello,
> >
> > I am traying to set up a wms server in ubuntu 8.04 with mapserver
> > through a fgs distribution
> > (fgs-mapserver_5.2.1-fgs_1.0.0-linux-i386.bin ) 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:
> >
> > msDrawMap(): Image handling error. Failed to draw layer named 'earth'.
> > msDrawRaster(): Image handling error. Unrecognized or unsupported image
> format
> > drawEPP(): Image handling error.
> > /home/route/fgs/www/cgi-bin/test/earth.ecw is not an EPPL file.
> >
> > In my system, "mapserv -v" returns:
> >
> > 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
> >
> > and "gdalinfo --format ecw" returns:
> >
> > Format Details:
> > Short Name: ECW
> > Long Name: ERMapper Compressed Wavelets
> > Extension: ecw
> > Help Topic: frmt_ecw.html
> > Supports: CreateCopy() - Create dataset by copying another.
> > Creation Datatypes: Byte
> >
> > <CreationOptionList>
> > <Option name="TARGET" type="float" description="Compression
> Percentage"/>
> > <Option name="PROJ" type="string" description="ERMapper Projection
> Name"/>
> > <Option name="DATUM" type="string" description="ERMapper Datum Name"/>
> > <Option name="LARGE_OK" type="boolean" description="Enable
> > compressing 500+MB files"/>
> > </CreationOptionList>
> >
> > so I think ecw support is granted. And here is an example of my map
> files:
> >
> > MAP
> > NAME "earth"
> > SIZE 600 600
> > IMAGETYPE PNG
> > IMAGECOLOR 255 255 255
> > EXTENT 532715.000 4733220.000 594155.000 4794660.000
> >
> > SHAPEPATH "/home/route/fgs/www/cgi-bin/test"
> >
> > DEBUG ON
> > CONFIG "MS_ERRORFILE" "/tmp/servidor_wms_error.txt"
> >
> > PROJECTION
> > "init=epsg:23029"
> > END
> >
> > WEB
> > METADATA
> > WMS_TITLE "Earth"
> > WMS_ONLINERESOURCE
> > "http://localhost:8000/cgi-bin/mapserv?map=test/earth2_server.map&"
> > WMS_SRS "EPSG:23029"
> > END
> > END
> >
> > LAYER
> > NAME "earth"
> > DATA "earth.ecw"
> > TYPE RASTER
> > STATUS ON
> > METADATA
> > WMS_TITLE "earth 2"
> > WMS_ABSTRACT "earth 2"
> > WMS_SRS "init=epsg:23029"
> > END
> > END
> > END
> >
> > 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??
> >
> >
>
> Gustavo,
>
> You wrote that you used fgs-mapserver_5.2.1-fgs_1.0.0-linux-i386.bin but
> "mapserver -v" revealed that the mapserver version is 5.0.2. There
> seems to be a wrong configuration somewhere.
>
> Can you see the gdal_ECW.so file in
> /home/nsavard/fgs-1.0.0/apps/gdal/driver?
>
> Norm
> _______________________________________________
> Foss-gis-suite mailing list
> Foss-gis-suite at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/foss-gis-suite
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/foss-gis-suite/attachments/20090310/e1b83739/attachment.htm
More information about the Foss-gis-suite
mailing list