James, I can't thank you enough. Exactly as you said, I was not passing the LAYERS parameter from my initialization html file, and then it took me a while to come around to the fact that I was not storing the layer parameter in the template html file.
So, for any future readers of tile4ms documentation (http://mapserver.org/utilities/tile4ms.html#tile4ms), my steps to creating a working map from that page follow. Best Regards Guys! Thanks again, Ted S. Initialization file - Changes marked by ***************** ######################## <html> <!-- initialization_file.html Description - This file initializes or starts the mapserver (MS) executable file, generally located in /cgi-bin/. The only purpose of this file is to build a url to give to '/cgi-bin/mapserv?'. The url built by this file is a request to mapserv to build an image with the layers specified in this file. I believe that the action may also be "POST", building a string held in the $_POST array. This file is not essential to using MS. You may manually enter the /cgi-bin/mapserv? request into the url. It is more convenient though. Mapserver CGI controls (MS Variables) 1. name="layers" layer - The name of a layer as it appears in the map file. Sending mapserv a layer name sets that layer’s STATUS to ON. layers - The names of the layers to be turned on. Layer names must be seperated by spaces: passing ‘LAYERS=all’ will automatically turn on all layers. 2. name="map" [filename] - Path, relative (or absolute) to the CGI directory, of the map file to be used. value="/path/to/mapfile.map --> <body bgcolor="#ffffff"> This form will initialize the Mapserver. <form method="GET" action="/cgi-bin/mapserv"> <input type="hidden" name="map" value="/path/to/mapfile.map"> ****************<input type="hidden" name="layers" value="all"> ********************** <input type="submit" value="Initialize"> </form> </body> </html> ######################## End Initialization file Mapserver Template - Changes marked by ***************** ######################## <!-- Mapserver Template --> <html> <head> <title>U.S. Atlas - States, Counties, Area Water</title> </head> <body bgcolor="#ffffff"> <div id="main"> <div id="head"> <h2>U.S. Atlas - States, Counties</h2> </div> <form method="GET"> <input name="img" type="image" src="[img]" width="1600" height="800" border=2> <br /> <input type="submit" value="Redraw"> <br /> [Zoom In <input type="radio" name="zoomdir" value="1" [zoomdir_1_check]>] [Pan <input type="radio" name="zoomdir" value="0" [zoomdir_0_check]>] [Zoom Out <input type="radio" name="zoomdir" value="-1" [zoomdir_-1_check]>] Zoom Size <input type="text" name="zoomsize" size="4" value="2"> ***********<input type="hidden" name="imgxy" value="[center_x] [center_y]"> **************** <input type="hidden" name="imgext" value="[mapext]"> *********** <input type="hidden" name="layers" value="[layers]"> **************** <input type="hidden" name="map" value="[map]"> </form> </div> </body> </html> ################### End Mapserver Template Variation 2 - Result: Tiled Layer Displays at the requested Scale denominatorl ##################### LAYER NAME "areawater" STATUS ON TYPE POLYGON TILEINDEX "/path/to/areawaterindex" TILEITEM 'LOCATION' ****** MAXSCALEDENOM 2000000 ********************** CLASS NAME "areawater" STYLE COLOR 0 0 255 END END ################## End Variation 2 James Card wrote: > > On Fri, 02 Oct 2009 21:00:29 -0700, Ted Spradley <[email protected]> > wrote: > >> STATUS ON means, it is available, but has to be requested > > The key here, that you may be missing, is that your WMS request must > specify each layer that you want to be included in the map that is > returned. Requesting a map without including the LAYERS parameter will > return only the layers that have STATUS DEFAULT set. > -- > James Card > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/tile4ms-Layer-object-STATUS-tp3758428p3762353.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
