[mapserver-users] On-the-fly field calculation in a GetFeatureInfo request
Jörg Thomsen (WhereGroup)
joerg.thomsen at wheregroup.com
Thu Mar 16 00:50:35 PDT 2017
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:
> 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
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
Viele Grüße,
Jörg Thomsen
--
*********************************************************
FOSS Academy Winterschule 2017
20.-24.03.2017 in Bonn
Alles Wichtige zur Erstellung einer GDI in nur 5 Tagen!
https://www.foss-academy.com/schulungstermine/kompaktkurs-winterschule
*********************************************************
-------------------------------
Jörg Thomsen
WhereGroup GmbH & Co. KG
Gillweg 3
14193 Berlin
Germany
Fon: +49 (0)30 / 5130 278 74
Fax: +49 (0)30 / 89 09 53 21
joerg.thomsen at wheregroup.com
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
-------------------------------
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
-------------------------------
Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com
More information about the MapServer-users
mailing list