[mapserver-users] How to display different features in different map scale ranges?

Kyle Qian kyleqian at gmail.com
Sat Feb 19 03:22:36 PST 2022


OK, I missed this in documents:  The first class that matches the its
min/max scale constraints and its EXPRESSION
<https://www.mapserver.org/mapfile/expressions.html#expressions> check for
the current feature will be used for rendering.

Kyle Qian <kyleqian at gmail.com> 于2022年2月19日周六 18:22写道:

> Hi, I would like to find a way to display different features in different
> map scale ranges, but some features may be displayed in multiple scale
> ranges. I know that CLASS can set EXPRESSION, MINSCALEDENOM and
> MAXSCALEDENOM, it seems that using multiple CLASS does the trick. When a
> Feature matches the expression of a CLASS but the scale range of the CLASS
> is inconsistent with the current map, will MapServer continue to evaluate
> whether the Feature belongs to other CLASS? Because if MapServer does not
> continue to evaluate, this Feature cannot be displayed.
>
> Or is there any other way to achieve what I want? Thanks.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20220219/9e5971b3/attachment.html>


More information about the MapServer-users mailing list