[mapserver-users] tile4ms - Layer object STATUS

Ted Spradley tspradley at snoogems.com
Sat Oct 3 00:00:29 EDT 2009


Thank you for taking a look at it!  

Still no success displaying with any other STATUS than DEFAULT.  Here are
the variations I tried:

Variation 1 - Result: No Layer display at any zoom level
#####################

        LAYER
                NAME            "areawater"
                STATUS          ON
                TYPE            POLYGON
                TILEINDEX       "/path/to/areawaterindex"
                TILEITEM        'LOCATION'
                CLASS
                        NAME "areawater"
                        STYLE
                                COLOR   0 0 255
                        END
                END 
##################
End Variation 1

Variation 2 - Result: No Layer Display at any zoom level
#####################

        LAYER
                NAME            "areawater"
                STATUS          ON
                TYPE            POLYGON
                TILEINDEX       "/path/to/areawaterindex"
                TILEITEM        'LOCATION'
		MAXSCALEDENOM	1000000  # Another layer with this same Maxscaledenom did
display
                CLASS
                        NAME "areawater"
                        STYLE
                                COLOR   0 0 255
                        END
                END 
##################
End Variation 2

Variation 3 - Result: No Layer Display at any zoom level
#####################

        LAYER
                NAME            "areawater"
                STATUS          ON
                TYPE            POLYGON
                TILEINDEX       "/path/to/areawaterindex"
                TILEITEM        'LOCATION'
		
                CLASS
                        NAME "areawater"
		        MAXSCALEDENOM	1000000
                        STYLE
                                COLOR   0 0 255
                        END
                END 
##################
End Variation 3

Variation 4 - Result: Layer Displays upon reaching MAXSCALEDENOM	1000000 
#####################

        LAYER
                NAME            "areawater"
                STATUS          DEFAULT
                TYPE            POLYGON
                TILEINDEX       "/path/to/areawaterindex"
                TILEITEM        'LOCATION'
		MAXSCALEDENOM	1000000  # Another layer with this same Maxscaledenom did
display
                CLASS
                        NAME "areawater"
                        STYLE
                                COLOR   0 0 255
                        END
                END 
##################
End Variation 4

Variation 4 displays of course, but so would a regular layer that had not
had a tile index built for it, with the same MAXSCALEDENOM	1000000.  

Could it possibly be something in my template? 

Thanks again, Ted S.

Mapserver Template
########################
<!--	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="80%" height="80%"
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="imgext" value="[mapext]">
<input type="hidden" name="map" value="[map]">
						</form>
				</div>
		</body>
</html>

###################
End Mapserver Template



STATUS OFF means just that.
STATUS ON means, it is available, but has to be requested
STATUS DEFAULT means you're gonna get it no matter what

Given the above three states, you can apply MINSCALEDENOM and
MAXSCALEDENOM. Note that MINSCALE and MAXSCALE are now deprecated.

-- 
View this message in context: http://n2.nabble.com/tile4ms-Layer-object-STATUS-tp3758428p3759035.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list