[mapserver-users] problems with raster, ecw and gdal support

Pushkar Pradhan pushkar at ERC.MsState.Edu
Fri Mar 1 09:11:08 PST 2002


I think this is happening because when you try to load a jpeg img. the
inbuilt jpeg libs. try to draw the img. before gdal and since they can't
handle color jpegs it fails.
Try compiling mapserver --without-jpeg and --with-gdal support.
> I am having problems using raster data within mapserver using gdal. The
> mapserver i use are the ms351gif_gdal_wmsc_nightly but I tried others with
> gdal support as well.
>
> I get a "Content-type: text/html msDrawRaster(): Image handling error.
> Unrecognized or unsupported image format" when using ECW data and
> "drawJPEG(): Image handling error. JPEG support is not available." using
> JPEG. GIF data work fine.
> regards
> Bo Overgaard
> Carl Bro
> www.carlbro.dk
> boo at carlbro.dk
>
>
> mapserv.exe -v give the result:
> MapServer version 3.5.1 (development) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
> OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER
> SUPPORTS=WMS_CLIENT INPUT=EPPL7 	INPUT=POSTGIS INPUT=OGR INPUT=GDAL
> INPUT=SHAPEFILE
>
> the map file look like this:
>
> NAME Kort
> STATUS ON
> SIZE 800 525
> FONTSET fonts/fontset.txt
> EXTENT 512855 6172280 666851 6297601
> UNITS METERS
> SHAPEPATH "d:/www/boo/vsa-n-m/shp"
> IMAGETYPE GIF
>
> WEB
>   TEMPLATE dkplan.html
>   MINSCALE 500
>   MAXSCALE 240000000
>   IMAGEPATH "d:/www/boo/vsa-n-m/tmp/"
>   LOG "d:/www/boo/vsa-n-m/mapserv.log"
> END
>
> PROJECTION
>   "proj=utm"
>   "ellps=WGS84"
>   "zone=32"
>   "north"
>   "no_defs"
> END
>
> LAYER
>   NAME kms_raster
>   DATA kms_rasterGray.jpg
>   TYPE RASTER
>   STATUS ON
>   PROJECTION
>     "proj=utm"
>     "ellps=WGS84"
>     "zone=32"
>     "north"
>     "no_defs"
>   END
> END
>
> LAYER
>   NAME xgif
>   DATA "kms_raster.gif"
>   TYPE RASTER
>   STATUS ON
> END
>
> LAYER
>   NAME xecw
>   TYPE RASTER
>   STATUS ON
>   DATA "Sample_15cm.ecw"
> END
>
> END
>

------------------------------------------------------------------------------
PUSHKAR S. PRADHAN
Research Assistant
MISSISSIPPI STATE UNIVERSITY,
STARKVILLE, MS 39759.

Engineering Research Center
Box 9627
Mississippi State, MS 39762-9627
------------------------------------------------------------------------------




More information about the MapServer-users mailing list