<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 3, 2022 at 8:00 AM Jörg Thomsen (WhereGroup) <<a href="mailto:joerg.thomsen@wheregroup.com">joerg.thomsen@wheregroup.com</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">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>
-> scaledenom<br>
<br>
Doesn't work?<br></blockquote><div><br></div><div>Thanks, but no, it does not work. I'm trying to access the scale in a map file, not in a template. Using square brackets [variable] is interpreted as a field name in the data, not as a runtime variable. For example:</div><div>  CLASS<br>    STYLE<br>      GEOMTRANSFORM (generalize([shape], [scaledenom]))<br>      COLOR "#2AB1F7"<br>    END<br>  END<br></div><div>returns the error:</div><div>  <span style="color:rgb(0,0,0);font-family:monospace;font-size:13px">DBASE file error. Item 'scaledenom' not found.</span></div><div><span style="color:rgb(0,0,0);font-family:monospace;font-size:13px"><br></span></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<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>
> <br>
> _______________________________________________<br>
> MapServer-users mailing list<br>
> <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>
<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>
_______________________________________________<br>
MapServer-users mailing list<br>
<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>
</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>