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

Bo Overgaard boo at carlbro.dk
Fri Mar 1 11:35:56 EST 2002


Tanks Steve

Actually it is the ecw support I am interested in, the information on JPEG
and GIF was only to report about the mapserver behaviour with other raster
layers. So any suggestions on how I get the ecw part working.

Bo Overgaard
Carl Bro
www.carlbro.dk
boo at carlbro.dk

-----Original Message-----
From: Steve Lime [mailto:steve.lime at dnr.state.mn.us]
Sent: Friday, March 01, 2002 4:57 PM
To: boo at carlbro.dk
Subject: Re: [mapserver-users] problems with raster, ecw and gdal
support


On the JPEG side you're MapServer wasn't compiled with JPEG support. GD
with JPEG
gives you JPEG output capability but not input capability. Libjpeg
directly for that 
support (note only greyscale JPEG is supported for input). Checkout the
--with-jpeg
option of configure.

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> Bo Overgaard <boo at carlbro.dk> 03/01/02 08:02AM >>>
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



More information about the mapserver-users mailing list