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

2022-02-20 Thread Kyle Qian
Thanks, I'll check it out. I think this is definitely what I want.

Seth G  于 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@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2022-02-20 Thread Seth G
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@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2022-02-19 Thread Kyle Qian
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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users