[mapserver-users] How to avoid reading unneeded Features from PostGIS when displaying by map scale ranges?

Kyle Qian kyleqian at gmail.com
Sun Feb 20 14:56:05 PST 2022


Thanks, I'll check it out. I think this is definitely what I want.

Seth G <sethg at geographika.co.uk> 于 2022年2月20日周日 21:23写道:

> Hi Kyle,
>
> Take a look at LAYER SCALETOKEN -
> https://mapserver.org/mapfile/layer.html#mapfile-layer-scaletoken
> and the RFC https://mapserver.org/development/rfc/ms-rfc-86.html#rfc86
>
> You should be able to add a filter directly to the DATA clause based on
> the scale that would filter the data directly at source.
>
> Seth
> --
> web:https://geographika.net
> twitter: @geographika
>
>
> On Sun, Feb 20, 2022, at 12:59 AM, Kyle Qian wrote:
>
> Hi, I know that MapServer will determine the CLASS of a Feature based on
> the expression and scale range when drawing, but what if I want to avoid
> reading data that is not needed under the current scale? FILTER can filter
> LAYER data at the same time as spatial query, but do I have to create a
> separate LAYER for each scale range?
> Thanks.
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20220221/5ceaa081/attachment.htm>


More information about the MapServer-users mailing list