[mapserver-users] MINSIZE for POLYGON?

Korbai, Zoltan korbai.zoltan at axelero.hu
Wed Jun 12 15:33:31 EDT 2002


Thanks to all for the answers. I think the "area" is not the solution
because
the size I mean is the zoomed size. On the map the lakes which are only
some pixels large are similar to dirty pixels. So I only want to show them
when they are zoomed in.

> I think "MINSIZE" only refers to labels and symbols, not layers. Does your
> shapefile have an area field? If so, you could set an expression in your
> class definition to only show polygons whose area was greater than some
> number.
>
> So, your layer definition would be:
>
> LAYER
>   NAME LAKE
>   TYPE POLYGON
>   STATUS On
>   DATA "eu/eu_See"
>   CLASSITEM 'AREA'  #or whatever the fieldname is...
>   CLASS
>     EXPRESSION ([AREA] >= 3250) #or whatever your threshold is...
>     NAME "Lakes"
>     OUTLINECOLOR 0 0 128
>     COLOR 209 209 255
>   END
> END
>
> Chip





More information about the mapserver-users mailing list