<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>LabelRequires & MS 4.4.0</title></head><body>
<div>All:</div>
<div><br></div>
<div>I have a quick question regarding LABELREQUIRES syntax. See
mapfile below. I want to only show this district label layer if
'district' layer is ON.</div>
<div><br></div>
<div>This layer syntax below worked fine in MS 4.2.6, but upon
switching to MS 4.4.0, I get the following error</div>
<div><br></div>
<div><font face="Times" size="+3"
color="#000000">
msValidateContexts: Recursion error found for LABELREQUIRES parameter
for layer district.</font></div>
<div><br></div>
<div>I checked the lastest mapfile manual online and the mapserver
list archives and tried various permutations, all to no avail.</div>
<div><br></div>
<div>Anyone have a solution?</div>
<div><br></div>
<div>Cheers,</div>
<div><br></div>
<div>Jerod</div>
<div><br></div>
<div>########## BEGIN DISTRICT LABELS LAYER<br>
LAYER<br>
<x-tab> </x-tab>CONNECTIONTYPE postgis<br>
<x-tab> </x-tab>NAME district<br>
<x-tab> </x-tab>GROUP 'People & Society'</div>
<div> <x-tab>
</x-tab>CONNECTION "user=xxxxxx dbname=xxxxxx password=xxxxxx
host=localhost"</div>
<div> <x-tab> </x-tab>DATA
"the_geom from shape_district using SRID=26716 using unique
oid"<br>
<x-tab> </x-tab>TYPE ANNOTATION<br>
<x-tab> </x-tab>STATUS
DEFAULT</div>
<div> <x-tab> </x-tab>DUMP
TRUE</div>
<div><x-tab>
</x-tab>MINSCALE 0</div>
<div><x-tab>
</x-tab>MAXSCALE 1000000<br>
<br>
<x-tab> </x-tab>LABELITEM
"district"</div>
<div> <x-tab>
</x-tab>LABELREQUIRES "[district] = 1"</div>
<div> <x-tab> </x-tab></div>
<div><x-tab>
</x-tab>CLASSITEM "district"</div>
<div> <x-tab>
</x-tab>CLASS</div>
<div> <x-tab>
</x-tab><x-tab>
</x-tab>COLOR -1 -1 -1</div>
<div> <x-tab>
</x-tab><x-tab>
</x-tab>LABEL<br>
<x-tab>
</x-tab><x-tab>
</x-tab><x-tab> </x-tab>TYPE
TRUETYPE<br>
<x-tab>
</x-tab><x-tab>
</x-tab><x-tab> </x-tab>FONT
"Vera"<br>
<x-tab>
</x-tab><x-tab>
</x-tab><x-tab> </x-tab>SIZE
9<br>
<x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>COLOR 0 0 0<br>
<x-tab
>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>SHADOWCOLOR 218 218 218<br>
<x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>SHADOWSIZE 1 1<br>
<x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>ANTIALIAS TRUE<br>
<x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>POSITION Cc<br>
<x-tab
>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>PARTIALS FALSE<br>
<x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>MINDISTANCE 100<br>
<x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>MINFEATURESIZE 100<br>
<x-tab>
</x-tab><x-tab>
</x-tab><x-tab> </x-tab>WRAP
"\n"<br>
<x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>OFFSET 3 3<br>
<x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>BUFFER 4<br>
<x-tab>
</x-tab><x-tab> </x-tab>END
# end of label</div>
<div> <x-tab> </x-tab>END #
end of class object</div>
<div> <x-tab>
</x-tab>METADATA</div>
<div> <x-tab>
</x-tab><x-tab>
</x-tab>WMS_TITLE "District Labels"</div>
<div> <x-tab>
</x-tab><x-tab>
</x-tab>WMS_ABSTRACT "District shapefile."</div>
<div> <x-tab>
</x-tab><x-tab>
</x-tab>WMS_SRS "EPSG:26716"<br>
<x-tab>
</x-tab><x-tab>
</x-tab>WMS_SHOWINLEGEND "no"</div>
<div> <x-tab> </x-tab>END #
end of metadata object</div>
<div>END<br>
########## END DISTRICT LABELS LAYER</div>
</body>
</html>