Hello, I have a rectangular gif world map and would like to see it in other projections such as mollweide, etc. My question is why is mapserver not showing a rectangular image map (raster), a gif file basically, in another given projection other than EPSG:4326? How can I get it to do that, (or is it not implemented)?
Details: I installed the latest ms4w 5.0 (2.2.6 release from maptools.org) and I have a NASA Blue Marble rectangular gif of the whole world and can see it perfectly when requesting EPSG:4326, however, I would like to be able to also see it in other projections. I tried the mollweide projection, which is defined as 54009 in the proj/nad/epsg file. When I request EPSG:54009 I see a filled blue featureless rectangle. I am not sure what I am doing wrong, or what I may be missing and would like to know. According to the instructions for map projection, the LAYER should specify the input projection, EPSG:4326 in this case, and the MAP should specify the output projection, EPSG:54009 in this case. My mapfile does just that, and I expected to see an elliptical-shaped mollweide projection of the rectangular NASA Blue Marble map yet only a blue rectangle shows up. Here is my request: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/mapfile.map&service=wms&version=1.1.1&request=getmap&layers=modis1&bbox=-180,-90,180,90&width=800&height=400&format=image/gif&styles=&srs=epsg:4326 notice that if epsg:4326 at the end is replaced with epsg:54009 to get the mollweide projection, then it doesn't appear to work - there is no error but there is only a blue rectangle, but the request as is with epsg:4326 gives the original rectangular map of the whole world from -180 to 180 longitude and from -90 to 90 latitude, same as looking directly at the gif in an image viewer. Here is my mapfile: MAP NAME myserver IMAGETYPE gif SIZE 800 400 IMAGECOLOR 205 205 255 SHAPEPATH "/ms4w/data" EXTENT -180 -90 180 90 # CONFIG "PROJ_LIB" "/ms4w/proj/nad/" # CONFIG "GDAL_DATA" "/ms4w/gdaldata/" WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "WMS Demo Server" ##REQUIRED - generates warning in xml output if missing END END PROJECTION "init=epsg:54009" # trying mollweide server output projection END LAYER NAME modis1 DATA modis1.gif TYPE RASTER STATUS OFF # PROCESSING "LOAD_WHOLE_IMAGE=TRUE" PROJECTION "init=epsg:4326" # standard WGS 84 input projection END METADATA "wms_title" "NASA Blue Marble" "wms_srs" "EPSG:4326 EPSG:54009" # list both input and output projections as supported to avoid error "wms_extent" "-180 -90 180 90" END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
