<div>Neil </div>
<div> </div>
<div>Another good one is REQUIRES "![LayerName]" </div>
<div> </div>
<div>I use this alot to have a base vector layer not draw if Aerial Photography is shown...</div>
<div> </div>
<div>Cheers</div>
<div>Mike<br><br> </div>
<div><span class="gmail_quote">On 04/02/2008, <b class="gmail_sendername">Neil Fincham</b> <<a href="mailto:neil@asdf.co.nz">neil@asdf.co.nz</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi All,<br><br> Quick question today, what is the correct syntax for the REQUIRES tag<br>in the mapfile? I have tried "REQUIRES ([OtherRoad] = 1)" (I.E, the<br>
layer OtherRoad must be on for the layer to display) and a few other<br>things and I don't seem to be getting any joy. I have included the map<br>layer definitions below;-<br><br>LAYER<br> NAME 'OtherRoad'<br>
TYPE LINE<br> CONNECTIONTYPE postgis<br> CONNECTION 'host=localhost user=postgres dbname=NZMM'<br> DATA 'the_geom FROM public.road_all_layer2_polyline'<br> METADATA<br> 'wms_title' 'OtherRoad'<br>
END<br> MAXSCALE 15000<br> STATUS ON<br> LABELITEM "road_name"<br> TRANSPARENCY 100<br> CLASS<br> NAME 'Road - Other'<br> STYLE<br> SYMBOL road-line<br> SIZE 1<br> COLOR 0 0 0<br>
END<br> END<br>END<br><br>LAYER<br> NAME 'MinorRuralRoad'<br> TYPE LINE<br> CONNECTIONTYPE postgis<br> CONNECTION 'host=localhost user=postgres dbname=NZMM'<br> DATA 'the_geom FROM public.road_all_layer2_polyline'<br>
METADATA<br> 'wms_title' 'MinorRuralRoad'<br> END<br> MAXSCALE 15000<br> STATUS ON<br> LABELITEM "road_name"<br> TRANSPARENCY 100<br> REQUIRES ([OtherRoad] eq 1)<br> CLASS<br>
NAME 'Minor Rural Road'<br> EXPRESSION ("[class]" = "MINOR RURAL ROAD")<br> LABEL<br> COLOR 0 0 0<br> FONT sans<br> TYPE truetype<br> SIZE 6<br> POSITION AUTO<br>
PARTIALS FALSE<br> ANGLE FOLLOW<br> BUFFER 10<br> OUTLINECOLOR 255 255 255<br> END<br> STYLE<br> SYMBOL road-line<br> SIZE 6<br> COLOR 0 0 0<br> END<br> STYLE<br>
SYMBOL road-line<br> SIZE 5<br> COLOR 255 0 255<br> END<br> END<br>END<br><br>Thanks Heaps<br><br><br>Neil<br></blockquote></div><br>