<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><font face="Calibri"><font face="Calibri">Could you point me in
the right direction for <font face="Calibri">the solutions
you proposed? I <font face="Calibri">like the idea of <font
face="Calibri">do calculations client<font
face="Calibri">-side with javascript, however, I did<font
face="Calibri">n't figure out how to fetch the value
within<font face="Calibri"> a <script> tag in
the template.</font></font></font></font></font></font></font></font><br>
</p>
<br>
<div class="moz-cite-prefix">On 2017-03-16 03:50, Jörg Thomsen
(WhereGroup) wrote:<br>
</div>
<blockquote
cite="mid:58cdc3c0-94b4-81cf-2a78-b10e31677541@wheregroup.com"
type="cite">
<pre wrap="">Hello Patrice,
I would prefer to save the data in a database using a view to create the
additional field (I haven't tried, but I think even spatialite is
possible as mapserver-deatasource?)
Another way would be to use scripting
- calculate the value with javascript within the template-html or
- use server-side processing within the template
Regards, Jörg
Am 16.03.2017 um 03:25 schrieb Abrabacabra:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
Is it possible to do numeric calculations with the result of a
GetFeatureInfo? Some layers have an area field in square meters but I
want to display it to the user in acres or hectares. It would be nice
not having to create a second attribute column in my source layer just
for that.
I am using an html template at layer level to output the results of the
query.
Mapserver 7.0.4
Thank you,
Patrice
_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
<pre wrap="">
Viele Grüße,
Jörg Thomsen
</pre>
</blockquote>
<br>
</body>
</html>