<br>
i want to load grib file in in browser and openlayers through mapfile .<br>
this is my mapfile<br>
MAP<br>
NAME "MAP"<br>
# Map image size<br>
SIZE 300 200<br>
UNITS meters<br>
<br>
CONFIG "MS_ERRORFILE" "/ms4w/Apache/logs.log"<br>
DEBUG 5<br>
<br>
EXTENT -9.000000 -110.772277 369.000000 109.772277<br>
#FONTSET '../etc/fonts.txt'<br>
#SYMBOLSET '../etc/symbols.sym'<br>
PROJECTION<br>
'proj=longlat'<br>
'ellps=WGS84'<br>
'datum=WGS84'<br>
'no_defs'<br>
END<br>
<br>
# Background color for the map canvas -- change as desired<br>
IMAGECOLOR 255 255 255<br>
IMAGEQUALITY 95<br>
IMAGETYPE png<br>
<br>
OUTPUTFORMAT<br>
NAME png<br>
DRIVER 'GD/PNG'<br>
MIMETYPE 'image/png'<br>
IMAGEMODE RGBA<br>
EXTENSION 'png'<br>
END<br>
# Legend<br>
LEGEND<br>
IMAGECOLOR 255 255 255<br>
STATUS ON<br>
KEYSIZE 18 12<br>
LABEL<br>
TYPE BITMAP<br>
SIZE MEDIUM<br>
COLOR 0 0 89<br>
END<br>
END<br>
<br>
# Web interface definition. Only the template parameter<br>
# is required to display a map. See MapServer documentation<br>
WEB<br>
# Set IMAGEPATH to the path where MapServer should<br>
# write its output.<br>
#IMAGEPATH '/tmp/ms_tmp/'<br>
<br>
# Set IMAGEURL to the url that points to IMAGEPATH<br>
# as defined in your web server configuration<br>
#IMAGEURL '/ms_tmp/'<br>
<br>
IMAGEPATH 'output/'<br>
IMAGEURL 'output/'<br>
LOG "/tmp/gmap.log"<br>
<br>
# WMS server settings<br>
METADATA<br>
'ows_title' 'MAP'<br>
'ows_onlineresource' '<br>
<a href="http://localhost/cgi-bin/mapserv?map=C:/ms4w/Apache/htdocs/shapefiles/GRIB_DATA/grib.map" target="_blank">http://localhost/cgi-bin/mapserv?map=C:/ms4w/Apache/htdocs/shapefiles/GRIB_DATA/grib.map</a><br>
'<br>
'ows_srs' 'EPSG:4326'<br>
END<br>
<br>
#Scale range at which web interface will operate<br>
# Template and header/footer settings<br>
# Only the template parameter is required to display a map. See<br>
MapServer documentation<br>
TEMPLATE 'templates/grib.html'<br>
END<br>
<br>
LAYER<br>
NAME 'gfs.t00z.pgrbf03'<br>
TYPE RASTER<br>
DUMP true<br>
TEMPLATE fooOnlyForWMSGetFeatureInfo<br>
EXTENT -9.000000 -110.772277 369.000000 109.772277<br>
#DATA 'C:/ms4w/Apache/htdocs/<div id=":66">shapefiles/GRIB_DATA/gfs.t00z.pgrbf03'<br>
DATA 'C:/ms4w/Apache/htdocs/shapefiles/GRIB_DATA/55'<br>
METADATA<br>
'ows_title' 'gfs.t00z.pgrbf03'<br>
'ows_title' '55'<br>
END<br>
STATUS OFF<br>
TRANSPARENCY 10<br>
PROJECTION<br>
'proj=longlat'<br>
'ellps=WGS84'<br>
'datum=WGS84'<br>
'no_defs'<br>
END<br>
PROCESSING 'BANDS=1'<br>
CLASS<br>
NAME 'red'<br>
EXPRESSION ([pixel] < -3)<br>
STYLE<br>
COLOR 255 0 0<br>
END<br>
END<br>
CLASS<br>
NAME 'green'<br>
EXPRESSION ([pixel] >= -3 and [pixel] < 3)<br>
STYLE<br>
COLOR 0 255 0<br>
END<br>
END<br>
CLASS<br>
NAME 'blue'<br>
EXPRESSION ([pixel] >= 3)<br>
STYLE<br>
COLOR 0 0 255<br>
END<br>
END<br>
<br>
<br>
END<br>
and i put the url in browser as<br>
<a href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/shapefiles/GRIB_DATA/grib.map&LAYERS=gfs.t00z.pgrbf03&FORMAT=png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&BBOX=-9.000000%20-110.772277%20369.000000%20109.772277&WIDTH=500&HEIGHT=500" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/shapefiles/GRIB_DATA/grib.map&LAYERS=gfs.t00z.pgrbf03&FORMAT=png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&BBOX=-9.000000%20-110.772277%20369.000000%20109.772277&WIDTH=500&HEIGHT=500</a><br>
it throws the ERROR<br>
msWMSLoadGetMapParms():WMS server error.wrong number of arguments for BBOX<br>
plz help me to find where i m doing wrong in mapfile or in url<br>
Thanks Regards</div>