[FGS] fgs and ecw support problem

Gustavo Fariña Fernández gus.videalab at gmail.com
Sun Mar 8 21:10:10 EST 2009


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??

Thanks in advance.


More information about the Foss-gis-suite mailing list