wcs and ecw

Miguel Ángel techdlists at YAHOO.ES
Wed Dec 14 13:45:25 EST 2005


I trying to get mapserver to serve ecw and geotiff rasters through the wcs
service, using mapserver 4.6.2, gdal 1.3.1 (compiled with the ecw and
geotiff option, read and write permission),  ecwsdk-3.1.25Jan05-linux and
libgeotiff-1.2.2.

It works fine with the geotiff files, but when I request an ecw raster I get
a corrupt file from the server.

Has anybody had the same problem?

thanks in advance,

    Miguel Ángel


compilation options:

**  GDAL:
./configure --with-libtiff=yes --with-geotiff=yes
--with-pg=/usr/local/pgsql/bin/pg_config
--with-geos=/usr/local/bin/geos-config
--with-ecw=../ecwsdk-3.1.25Jan05-linux --with-jasper=yes --with-python

** MAPSERVER):
./configure --with-proj=/usr/local/src/proj-4.4.9
--with-freetype=/usr/bin/freetype-config
--with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config
--with-postgis=/usr/local/pgsql/bin/pg_config --with-wfs --with-wms
--with-wmsclient --with-wfsclient --with-wcs
--with-curl-config=/usr/bin/curl-config --with-httpd=/usr/sbin/httpd2-worker
--with-geos=/usr/local/bin/geos-config --with-threads

this is the .map file:

MAP
    NAME XXXXX
    STATUS ON
    IMAGETYPE PNG
    SIZE 1024 768
    IMAGECOLOR 255 255 255
    SHAPEPATH "."
    EXTENT 736578 4429321 771455 4454233
    UNITS METERS
    PROJECTION
    "init=epsg:23030"
    END
    WEB
        IMAGEPATH          "/tmp"
        IMAGEURL            "http://localhost/tmp/"
        METADATA
        OWS_TITLE        "XXXXX"
        OWS_LABEL       "XXXXX"
        OWS_ONLINERESOURCE    "XXXXXXX"
        OWS_KEYWORDLIST        "WMS,WCS"
        OWS_SRS            "EPSG:23030"
        OWS_SCHEMAS_LOCATION    "http://ogc.dmsolutions.ca"
        OWS_NAMESPACE_PREFIX    "XXXX"
        OWS_NAMESPACE_URI    "XXXXXXXXXXXX"
        END
    END

    OUTPUTFORMAT
        NAME GEOTIFF
        DRIVER "GDAL/GTiff"
        MIMETYPE "image/tif"
        IMAGEMODE "BYTE"
        EXTENSION "tif"
    END

    OUTPUTFORMAT
        NAME ECW
        DRIVER "GDAL/ECW"
        MIMETYPE "image/ecw"
        IMAGEMODE "BYTE"
        EXTENSION "ecw"
    END

    #--------------------------------------------------------------
    # qb_h61666.tif
    #--------------------------------------------------------------

    LAYER
    GROUP QUICKBIRD
    NAME "XXXXX"
    TYPE RASTER
    STATUS ON
    DUMP TRUE
        PROCESSING "SCALE=AUTO"
        PROCESSING "BANDS=1,2,3"
    DATA "Quickbird/XXXXXX.tif"
    MAXSCALE 500000
    METADATA
        OWS_TITLE        "XXXXX"
        OWS_LABEL        "XXXXX"
               wcs_resolution         "0.7 -0.7"
               wcs_formats         "GEOTIFF"
               wcs_nativeformat     "raw_binary"
               wcs_rangeset_axes     "bands"
               wcs_rangeset_label     "bands"
               wcs_rangeset_name     "bands"
               wcs_bandcount         "3"
    END
    END

    LAYER
    GROUP ECW
    NAME "XXXX"
    STATUS ON
    DATA "Ortofotos/XXXX.ecw"
    DUMP TRUE
    TYPE RASTER
        PROCESSING "SCALE=AUTO"
        METADATA
        OWS_TITLE        "XXXXXX"
               OWS_LABEL         "XXXXXXX"
               wcs_resolution         "0.5 -0.5"
               wcs_formats         "ECW"
               wcs_nativeformat     "raw_binary"
               wcs_rangeset_axes     "bands"
               wcs_rangeset_label     "bands"
               wcs_rangeset_name     "bands"
               wcs_bandcount         "3"
    END
    END

END



More information about the mapserver-users mailing list