Hi, At least this degree based extent is a bit odd to me EXTENT -9.000000 -110.772277 369.000000 109.772277
-Jukka Rahkonen- Sila Khan wrote: > i want to load grib file in in browser and openlayers through mapfile . this is my mapfile MAP NAME "MAP" # Map image size SIZE 300 200 UNITS meters CONFIG "MS_ERRORFILE" "/ms4w/Apache/logs.log" DEBUG 5 EXTENT -9.000000 -110.772277 369.000000 109.772277 #FONTSET '../etc/fonts.txt' #SYMBOLSET '../etc/symbols.sym' PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END # Background color for the map canvas -- change as desired IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' IMAGEMODE RGBA EXTENSION 'png' END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. #IMAGEPATH '/tmp/ms_tmp/' # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration #IMAGEURL '/ms_tmp/' IMAGEPATH 'output/' IMAGEURL 'output/' LOG "/tmp/gmap.log" # WMS server settings METADATA 'ows_title' 'MAP' 'ows_onlineresource' ' http://localhost/cgi-bin/mapserv?map=C:/ms4w/Apache/htdocs/shapefiles/GRIB_DATA/grib.map ' 'ows_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation TEMPLATE 'templates/grib.html' END LAYER NAME 'gfs.t00z.pgrbf03' TYPE RASTER DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT -9.000000 -110.772277 369.000000 109.772277 #DATA 'C:/ms4w/Apache/htdocs/ shapefiles/GRIB_DATA/gfs.t00z.pgrbf03' DATA 'C:/ms4w/Apache/htdocs/shapefiles/GRIB_DATA/55' METADATA 'ows_title' 'gfs.t00z.pgrbf03' 'ows_title' '55' END STATUS OFF TRANSPARENCY 10 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END PROCESSING 'BANDS=1' CLASS NAME 'red' EXPRESSION ([pixel] < -3) STYLE COLOR 255 0 0 END END CLASS NAME 'green' EXPRESSION ([pixel] >= -3 and [pixel] < 3) STYLE COLOR 0 255 0 END END CLASS NAME 'blue' EXPRESSION ([pixel] >= 3) STYLE COLOR 0 0 255 END END END and i put the url in browser as 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 it throws the ERROR msWMSLoadGetMapParms():WMS server error.wrong number of arguments for BBOX plz help me to find where i m doing wrong in mapfile or in url Thanks Regards _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users