<!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, &quot;Roads&quot; which I have locally and &quot;NTS_Roads&quot; which I connect to through wms. I have the MINSCALE for &quot;Roads&quot; set at 500000, and the MAXSCALE for &quot;NTS_Roads&quot; set to 500000. Both STATUS for both layers should be ON.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">The &quot;Roads&quot; layer does disappear when the appropriate scale is reached, AND the &quot;NTS_Roads&quot; layers does show up on the legend when zoomed into the set scale, BUT the &quot;NTS_Roads&quot; 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 &quot;NTS_Roads&quot; 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">&nbsp; TEMPLATE &quot;dummy.html&quot;</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp; NAME &quot;NTS_Roads&quot;</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp; GROUP &quot;Base Layers&quot;</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp; MAXSCALE 500000</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp; CONNECTIONTYPE WMS</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp; CONNECTION &quot;</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">&quot;</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp; UNITS METERS</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">METADATA</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">&quot;wms_title&quot;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;NTS Roads (250K)&quot;</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">&quot;wms_abstract&quot;&nbsp; &quot;&quot;</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">&quot;legend_type&quot;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;layer&quot;</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">&quot;wms_sld_body&quot; &quot;AUTO&quot;</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">END</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp; PROJECTION</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; &quot;init=epsg:42304&quot;</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp; END</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp; STATUS default</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp; 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>