<div dir="ltr"><div dir="ltr">On Fri, Jun 3, 2022 at 8:43 AM Jörg Thomsen (WhereGroup) <<a href="mailto:joerg.thomsen@wheregroup.com">joerg.thomsen@wheregroup.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Richard,<br>
sorry, yes, sure...<br>
<br>
Perhaps you can use scaletoken? It's not the same as you are searching <br>
for, but you could define a set of tolerance-values for different scales.<br></blockquote><div><br></div><div>Yes - I had not thought of that. It might be a better way than what I was trying to do. Thank you! </div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am 03.06.22 um 16:21 schrieb Richard Greenwood:<br>
> <br>
> <br>
> On Fri, Jun 3, 2022 at 8:00 AM Jörg Thomsen (WhereGroup) <br>
> <<a href="mailto:joerg.thomsen@wheregroup.com" target="_blank">joerg.thomsen@wheregroup.com</a> <mailto:<a href="mailto:joerg.thomsen@wheregroup.com" target="_blank">joerg.thomsen@wheregroup.com</a>>> wrote:<br>
> <br>
>     Hi,<br>
> <br>
>     what about:<br>
>     <a href="https://mapserver.org/mapfile/template.html#image-geometry" rel="noreferrer" target="_blank">https://mapserver.org/mapfile/template.html#image-geometry</a><br>
>     <<a href="https://mapserver.org/mapfile/template.html#image-geometry" rel="noreferrer" target="_blank">https://mapserver.org/mapfile/template.html#image-geometry</a>><br>
>     -> scaledenom<br>
> <br>
>     Doesn't work?<br>
> <br>
> <br>
> Thanks, but no, it does not work. I'm trying to access the scale in a <br>
> map file, not in a template. Using square brackets [variable] is <br>
> interpreted as a field name in the data, not as a runtime variable. For <br>
> example:<br>
>    CLASS<br>
>      STYLE<br>
>        GEOMTRANSFORM (generalize([shape], [scaledenom]))<br>
>        COLOR "#2AB1F7"<br>
>      END<br>
>    END<br>
> returns the error:<br>
> DBASE file error. Item 'scaledenom' not found.<br>
> <br>
> <br>
>     Jörg<br>
> <br>
> <br>
>     Am 03.06.22 um 15:45 schrieb Richard Greenwood:<br>
>      > Can I get the current scale for use in a map file at runtime.<br>
>      > Specifically, I'd like to use it in a geotransform something like:<br>
>      >     GEOMTRANSFORM (generalize([shape], [scale]))<br>
>      > or more likely for use in an expression:<br>
>      >     GEOMTRANSFORM (generalize([shape], [scale] / 100))<br>
>      > Thanks<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>
>     <<a href="http://www.greenwoodmap.com" rel="noreferrer" target="_blank">http://www.greenwoodmap.com</a> <<a href="http://www.greenwoodmap.com" rel="noreferrer" target="_blank">http://www.greenwoodmap.com</a>>><br>
>      ><br>
>      > _______________________________________________<br>
>      > MapServer-users mailing list<br>
>      > <a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a><br>
>     <mailto:<a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a>><br>
>      > <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
>     <<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a>><br>
> <br>
> <br>
>     -- <br>
>     Viele Grüße,<br>
>     Jörg Thomsen<br>
> <br>
>     ---------------------------------------------<br>
>     Aufwind durch Wissen!<br>
>     Jetzt neu: Web-Seminare und Online-Schulungen<br>
>     bei der <a href="http://www.foss-academy.com" rel="noreferrer" target="_blank">www.foss-academy.com</a> <<a href="http://www.foss-academy.com" rel="noreferrer" target="_blank">http://www.foss-academy.com</a>><br>
>     ---------------------------------------------<br>
> <br>
>     Jörg Thomsen<br>
>     WhereGroup GmbH<br>
>     Bundesallee 23<br>
>     10717 Berlin<br>
>     Germany<br>
> <br>
>     Tel: +49 (0)30 / 5130 278 74<br>
>     Fax: +49 (0)30 / 5130 278 11<br>
> <br>
>     <a href="mailto:joerg.thomsen@wheregroup.com" target="_blank">joerg.thomsen@wheregroup.com</a> <mailto:<a href="mailto:joerg.thomsen@wheregroup.com" target="_blank">joerg.thomsen@wheregroup.com</a>><br>
>     <a href="http://www.wheregroup.com" rel="noreferrer" target="_blank">www.wheregroup.com</a> <<a href="http://www.wheregroup.com" rel="noreferrer" target="_blank">http://www.wheregroup.com</a>><br>
> <br>
>     Geschäftsführer:<br>
>     Olaf Knopp, Peter Stamm<br>
>     Amtsgericht Bonn, HRB 9885<br>
> <br>
>     -------------------------------<br>
>     Folgen Sie der WhereGroup auf twitter:<br>
>     <a href="http://twitter.com/WhereGroup_com" rel="noreferrer" target="_blank">http://twitter.com/WhereGroup_com</a> <<a href="http://twitter.com/WhereGroup_com" rel="noreferrer" target="_blank">http://twitter.com/WhereGroup_com</a>><br>
>     _______________________________________________<br>
>     MapServer-users mailing list<br>
>     <a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a> <mailto:<a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a>><br>
>     <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
>     <<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a>><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>
<br>
<br>
-- <br>
Viele Grüße,<br>
Jörg Thomsen<br>
<br>
---------------------------------------------<br>
Aufwind durch Wissen!<br>
Jetzt neu: Web-Seminare und Online-Schulungen<br>
bei der <a href="http://www.foss-academy.com" rel="noreferrer" target="_blank">www.foss-academy.com</a><br>
---------------------------------------------<br>
<br>
Jörg Thomsen<br>
WhereGroup GmbH<br>
Bundesallee 23<br>
10717 Berlin<br>
Germany<br>
<br>
Tel: +49 (0)30 / 5130 278 74<br>
Fax: +49 (0)30 / 5130 278 11    <br>
<br>
<a href="mailto:joerg.thomsen@wheregroup.com" target="_blank">joerg.thomsen@wheregroup.com</a><br>
<a href="http://www.wheregroup.com" rel="noreferrer" target="_blank">www.wheregroup.com</a><br>
<br>
Geschäftsführer:<br>
Olaf Knopp, Peter Stamm<br>
Amtsgericht Bonn, HRB 9885<br>
<br>
-------------------------------<br>
Folgen Sie der WhereGroup auf twitter: <a href="http://twitter.com/WhereGroup_com" rel="noreferrer" target="_blank">http://twitter.com/WhereGroup_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></div>