[mapserver-users] MINSIZE for POLYGON?

Stephen Woodbridge woodbri at swoodbridge.com
Wed Jun 12 14:11:15 PDT 2002


Area could still work for you, because area * scale ~= pixels so for
example you could have a classitem of area then for each MIN/MAX SCALE
decide what the area cutoff is.

-Steve

"Korbai, Zoltan" wrote:
> 
> 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