<div dir="auto"><div dir="auto">Thanks, I'll check it out. I think this is definitely what I want.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Seth G <<a href="mailto:sethg@geographika.co.uk" target="_blank" rel="noreferrer">sethg@geographika.co.uk</a>> 于 2022年2月20日周日 21:23写道:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u><div><div>Hi Kyle,<br></div><div><br></div><div>Take a look at LAYER SCALETOKEN - <a href="https://mapserver.org/mapfile/layer.html#mapfile-layer-scaletoken" rel="noreferrer noreferrer" target="_blank">https://mapserver.org/mapfile/layer.html#mapfile-layer-scaletoken</a><br></div><div>and the RFC <a href="https://mapserver.org/development/rfc/ms-rfc-86.html#rfc86" rel="noreferrer noreferrer" target="_blank">https://mapserver.org/development/rfc/ms-rfc-86.html#rfc86</a> <br></div><div><br></div><div>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.<br></div><div><br></div><div>Seth<br></div><div id="m_513686306012387812m_8743990107145585388sig62266145"><div>--<br></div><div>web:<a href="https://geographika.net" rel="noreferrer noreferrer" target="_blank">https://geographika.net</a><br></div><div>twitter: @geographika<br></div></div><div><br></div><div><br></div><div>On Sun, Feb 20, 2022, at 12:59 AM, Kyle Qian wrote:<br></div><blockquote type="cite" id="m_513686306012387812m_8743990107145585388qt"><div dir="ltr"><div>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? <br></div><div>Thanks.<br></div></div><div>_______________________________________________<br></div><div>MapServer-users mailing list<br></div><div><a href="mailto:MapServer-users@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">MapServer-users@lists.osgeo.org</a><br></div><div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></div><div><br></div></blockquote><div><br></div></div></blockquote></div></div>