<div dir="ltr">Ah, good point. The examples do all show it being used in conjunction with the DATA statement.<div><br></div><div>Thanks,</div><div>Rich</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 10, 2022 at 1:29 AM Eichner, Andreas - SID <<a href="mailto:Andreas.Eichner@sid.sachsen.de">Andreas.Eichner@sid.sachsen.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">According to RFC 86 SCALETOKENs are used to replace tokens inside a layer’s DATA statement - so it might simply not work within class expressions.<br>
As a workaround you might use MINSCALEDENOM and MAXSCALEDENOM within CLASS.<br>
<br>
Kind regards,<br>
Andreas<br>
<br>
-----Ursprüngliche Nachricht-----<br>
Von: MapServer-users <<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>> Im Auftrag von Richard Greenwood<br>
Gesendet: Donnerstag, 10. November 2022 03:00<br>
An: mapserver <<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>><br>
Betreff: [MapServer-users] using SCALETOKEN in an EXPRESSION<br>
<br>
Can anyone tell me what's wrong with my EXPRESSION below? I'm trying to filter features from the National Hydrology Dataset based on scale using SCALETOKEN and I can't seem to get it right. [Visibility] is a field in the data that suggests the scale at which a feature should be shown.<br>
<br>
Thanks!<br>
<br>
LAYER<br>
NAME "flowline"<br>
TYPE line<br>
DATA "shapefiles3857/nhd/flowline"<br>
SCALETOKEN<br>
NAME "%priority%"<br>
VALUES<br>
"0" "0"<br>
"24000" "24000"<br>
"50000" "50000"<br>
"100000" "100000"<br>
"250000" "250000"<br>
"500000" "500000"<br>
"1000000" "1000000"<br>
"2000000" "2000000"<br>
"5000000" "5000000"<br>
END<br>
END<br>
CLASS<br>
EXPRESSION ([Visibility] > %priority%)<br>
STYLE<br>
COLOR 158 196 255<br>
MINSIZE 1<br>
SIZE 3<br>
MAXSIZE 6<br>
END<br>
END<br>
END<br>
<br>
<br>
-- <br>
<br>
Richard W. Greenwood<br>
<a href="http://www.greenwoodmap.com" rel="noreferrer" target="_blank">www.greenwoodmap.com</a> <<a href="http://www.greenwoodmap.com" rel="noreferrer" target="_blank">http://www.greenwoodmap.com</a>> <br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Richard W. Greenwood<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div>