[Ubuntu] ecw support in ubuntu with mapserver

Gustavo Fariña Fernández gus.videalab at gmail.com
Thu Mar 5 05:59:39 EST 2009


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/ubuntu/attachments/20090305/6ced092d/attachment.html


More information about the Ubuntu mailing list