Map not rendering

Hester Jane Viola H.Viola at BOM.GOV.AU
Sun Jan 8 19:17:38 PST 2006


Hi,
The problem is easily solved. 
Your request does actually work, in that it returns an image, but will not render any layers unless you set them to be drawn by default. 
using :  STATUS DEFAULT

Have a look at the following:
Copyright layer only (which has STATUS DEFAULT)
http://www4.bom.gov.au/cgi-bin/mapserver/mapserv?map=%2Fweb%2Fhtdocs%2Fmapserver%2Fweather.map&mode=map
and
http://www4.bom.gov.au/cgi-bin/mapserver/mapserv?map=/web/htdocs/mapserver/weather.map&version=1.1.1&service=WMS&request=GetMap&layers=copyright&SRS=EPSG:4283&bbox=111,-48.3,158,-4.2&transparent=true

versus:

Copyright and coast (though copyright is not required in either request, but it is still returned)
http://www4.bom.gov.au/cgi-bin/mapserver/mapserv?map=/web/htdocs/mapserver/weather.map&version=1.1.1&service=WMS&request=GetMap&layers=coast&SRS=EPSG:4283&bbox=111,-48.3,158,-4.2&transparent=true
and 
http://www4.bom.gov.au/cgi-bin/mapserver/mapserv?map=%2Fweb%2Fhtdocs%2Fmapserver%2Fweather.map&mode=map&layer=coast

Hope that makes sense
Cheers
Hester
http://www4.bom.gov.au/mapserver


--
Regards
Hester VIOLA

IT Officer,  Data Management
Bureau of Meteorology
700 Collins St, Melbourne
Australia, 3008
Email. h.viola at bom.gov.au
Ph. 61 39669-4403 (w) 



-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On
Behalf Of James Net
Sent: Monday, 9 January 2006 1:49 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Map not rendering


Hi all,

While I hope this is not a silly question, I fear it is, or at least would 
have a simple solution.

I am trying to render a map with ms.

If I do the following, the map renders and all is fine:

http://myserver/cgi-bin/mapserv?map=/var/www/html/workshop/start3.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=mymap

However, if I try the following, nothing is rendered - just a solid white 
square:

http://myserver/cgi-bin/mapserv?map=/var/www/html/workshop/start3.map&mode=map

I'm just using a simple map file:

MAP
  NAME           TEST
  IMAGETYPE      jpeg
  EXTENT         140 -40 150 -33
  SIZE           600 600
  #SHAPEPATH      "/home/data/map/Landsat Mosaic TM2000/GDA94LL/"
  DEBUG ON

#  TEMPLATEPATTERN 'start'

WEB
    TEMPLATE  'start_template.html'
    IMAGEPATH '/var/www/html/tmp/'
    IMAGEURL  '/tmp/'
END

PROJECTION
  "init=epsg:4283"   #required
END

LAYER
   NAME "mymap"
   DATA "mymap_mosaic_murray_geov2_WGS84.tif"
   TYPE RASTER
   STATUS ON
END

END


Is this odd? Shouldn't both URL's work?

I've also tried shp2img and the map correctly renders.

So why doesn't this work?:

http://myserver/cgi-bin/mapserv?map=/var/www/html/workshop/start3.map&mode=map

I'm using map server on redhat.

Thanks in advance.

_________________________________________________________________
Make your dream car a reality 
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fcarpoint%2Eninemsn%2Ecom%2Eau&_t=12345&_r=emailtagline&_m=EXT



More information about the MapServer-users mailing list