maxfeatures

John Bolster jb at NUCOMP.COM
Wed Sep 29 18:27:20 EDT 2004


Hi all,

I've been unable to make the maxfeatures keyword work. In the following
layer I get all the labels, regardless of what I set maxfeatures to. Any
ideas on what I'm doing wrong? Incidentally, if I change the type to point
then I get nothing at all!

LAYER
  NAME cities
  TYPE annotation
  STATUS default
  TILEINDEX tileindexplacecu
  PROJECTION proj=latlong END
  LABELITEM "name"
  MAXFEATURES 5
  CLASS
    SYMBOL "circle"
    SIZE 6
    COLOR 255 0 0
    LABEL
        COLOR 132 31 31
        SHADOWCOLOR 218 218 218
        SHADOWSIZE 2 2
        TYPE TRUETYPE
        FONT luci
        SIZE 12
        ANTIALIAS TRUE
        POSITION CL
        PARTIALS FALSE
        MINDISTANCE 300
        BUFFER 4
    END
  END
END

Thanks,
John Bolster



More information about the mapserver-users mailing list