[mapserver-users] How to avoid reading unneeded Features from PostGIS when displaying by map scale ranges?
Seth G
sethg at geographika.co.uk
Sun Feb 20 05:23:03 PST 2022
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/20220220/624e1ec3/attachment.htm>
More information about the MapServer-users
mailing list