<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.14">
<TITLE>Problem with MAXSCALE and STATUS on wms layer</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi all,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I'm having a problem using MAXSCALE and STATUS on a layer that I'm accessing through wms. </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Here's the situation: I have two road layers, "Roads" which I have locally and "NTS_Roads" which I connect to through wms. I have the MINSCALE for "Roads" set at 500000, and the MAXSCALE for "NTS_Roads" set to 500000. Both STATUS for both layers should be ON.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">The "Roads" layer does disappear when the appropriate scale is reached, AND the "NTS_Roads" layers does show up on the legend when zoomed into the set scale, BUT the "NTS_Roads" are not turned on. (The layer DOES display properly when turned on).</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Am I missing something in my mapfile - or is there some problem related to wms connection?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I had experienced similar problems before with some of my local data, but I got around the problem by using an SLD to render the layer and set the min and maxscaledenominator tags, however I don't believe I can use an SLD on a wms layer (I've tried and it didn't work - am I correct?).</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Here's the "NTS_Roads" layer from my mapfile</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">#### NTS TEST ROADS ####</FONT>
<BR><FONT SIZE=2 FACE="Courier New">LAYER</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> TEMPLATE "dummy.html"</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> NAME "NTS_Roads"</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> GROUP "Base Layers"</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> MAXSCALE 500000</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> CONNECTIONTYPE WMS</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> CONNECTION "</FONT><A HREF="https://ca.nfis.org/cubewerx/cubeserv/cubeserv.cgi?...."><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">https://ca.nfis.org/cubewerx/cubeserv/cubeserv.cgi?....</FONT></U></A><FONT SIZE=2 FACE="Courier New">"</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> UNITS METERS</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">METADATA</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">"wms_title" "NTS Roads (250K)"</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">"wms_abstract" ""</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">"legend_type" "layer"</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">"wms_sld_body" "AUTO"</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">END</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> PROJECTION</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> "init=epsg:42304"</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> END</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> STATUS default</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> TYPE LINE </FONT>
<BR><FONT SIZE=2 FACE="Courier New">END</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Please let me know if you know of a fix. Thanks!</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">John</FONT>
</P>
<BR>
</BODY>
</HTML>