LabelRequires & MS 4.4.0

Jerod Clabaugh jclabaugh at MAC.COM
Wed Dec 22 16:26:50 PST 2004


All:

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.

This layer syntax below worked fine in MS 4.2.6, but upon switching
to MS 4.4.0, I get the following error

        msValidateContexts: Recursion error found for LABELREQUIRES
parameter for layer district.

I checked the lastest mapfile manual online and the mapserver list
archives and tried various permutations, all to no avail.

Anyone have a solution?

Cheers,

Jerod

########## BEGIN DISTRICT LABELS LAYER
LAYER
        CONNECTIONTYPE postgis
        NAME district
        GROUP 'People & Society'
        CONNECTION "user=xxxxxx dbname=xxxxxx password=xxxxxx host=localhost"
        DATA "the_geom from shape_district using SRID=26716 using unique oid"
        TYPE ANNOTATION
        STATUS DEFAULT
        DUMP TRUE
        MINSCALE 0
        MAXSCALE 1000000

        LABELITEM "district"
        LABELREQUIRES "[district] = 1"

        CLASSITEM "district"
        CLASS
                COLOR -1 -1 -1
                LABEL
                        TYPE TRUETYPE
                        FONT "Vera"
                        SIZE 9
                                COLOR 0 0 0
                        SHADOWCOLOR 218 218 218
                        SHADOWSIZE 1 1
                        ANTIALIAS TRUE
                        POSITION Cc
                        PARTIALS FALSE
                        MINDISTANCE 100
                        MINFEATURESIZE 100
                        WRAP "\n"
                        OFFSET 3 3
                        BUFFER 4
                END # end of label
        END # end of class object
        METADATA
                WMS_TITLE "District Labels"
                WMS_ABSTRACT "District shapefile."
                WMS_SRS "EPSG:26716"
                WMS_SHOWINLEGEND "no"
        END # end of metadata object
END
########## END DISTRICT LABELS LAYER
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041222/064a0004/attachment.htm>


More information about the MapServer-users mailing list