[Ubuntu] ecw support in ubuntu with mapserver

Alan Boudreault aboudreault at mapgears.com
Thu Mar 5 09:50:13 EST 2009


You should try the mapserver list. This list is for osgeo debian/ubuntu 
packages.

Alan

On March 5, 2009 05:59:39 am 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 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" command 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 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?? :S
>
> Thanks in advance.



More information about the Ubuntu mailing list