<div dir="ltr">Interesting.<div>As Steve said one attractive use of a scripting engine embedded in mapserver could be in dynamic query templates.</div><div><br></div><div>Alan, was there a particular reason for choosing V8 instead of other engines like LUA?</div>
<div><br></div><div>Umberto</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 19, 2013 at 7:52 PM, Lime, Steve D (MNIT) <span dir="ltr"><<a href="mailto:Steve.Lime@state.mn.us" target="_blank">Steve.Lime@state.mn.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I remember chatting about this a bit at FOSS4G-NA. Javascript has such broad support these days it seems a reasonable choice for an embedded language. Could presumably consider others. Have you actually got this integration working even in just a simple way? I'd be interested in seeing code. I could see templates evolving this way. That is, we expose the result set and other query/render time values. With the other potential uses out there we should make sure exposing objects can be done using a standard syntax.<br>

<br>
Steve<br>
<br>
________________________________________<br>
From: <a href="mailto:mapserver-dev-bounces@lists.osgeo.org">mapserver-dev-bounces@lists.osgeo.org</a> [<a href="mailto:mapserver-dev-bounces@lists.osgeo.org">mapserver-dev-bounces@lists.osgeo.org</a>] on behalf of Alan Boudreault [<a href="mailto:aboudreault@mapgears.com">aboudreault@mapgears.com</a>]<br>

Sent: Monday, August 19, 2013 12:27 PM<br>
To: thomas bonfort<br>
Cc: <a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
Subject: Re: [mapserver-dev] RFC 102: Styleitem Javascript Plugin<br>
<div class="HOEnZb"><div class="h5"><br>
All,<br>
<br>
- V8 allows us to embed a javascript interpretor in an application. It<br>
implements ECMAScript 5th edition and runs on Windows, Mac and Linux.<br>
<br>
The idea behind its addition is to have a scripting language to<br>
implement various plugins. The one suggested here is a plugin that<br>
generates styles, but we could imagine some other use cases: ie. a new<br>
datasource that return the shape object from a javascript plugin or<br>
maybe the ability to use a javascript plugin to extend the geomtransform<br>
for a specific case.<br>
<br>
V8 provide an embeded javascript engine (syntax, interpretation,<br>
execution) and it is absolutely not related to anything *client-side*<br>
(browser). So no, it is not needed for scribeUI.<br>
<br>
- The shapeObj will be exposed as a wrapper created for the v8 engine. I<br>
will only expose shape attributes for this RFC. A new rfc will be<br>
written later for a *complex symbology plugin* and the geometry will be<br>
expose for this need.<br>
<br>
- nothing to push in a branch yet<br>
<br>
On 13-08-19 12:50 PM, thomas bonfort wrote:<br>
> Alan,<br>
> - For those of us who haven't followed up closely on the v8 engine and<br>
> its possibilities, could you expand your RFC or follow up here with<br>
> some use-cases where this would be used in mapserver? Is this<br>
> something that is needed for scribeUI?<br>
> - How and what do you plan on exposing of a shapeObj to V8? Direct<br>
> member access or wrappers? Will you expose only attributes or also<br>
> geometry?<br>
> - You seem to have some or most of the code ready? Can you push your<br>
> branch publicly?<br>
><br>
> thanks,<br>
> Thomas<br>
><br>
> On 19 August 2013 18:17, Alan Boudreault <<a href="mailto:aboudreault@mapgears.com">aboudreault@mapgears.com</a>> wrote:<br>
>> Devs,<br>
>><br>
>> Please take a look at RFC 102 which propose the addition of a styleitem<br>
>> javascript plugin as an alternative to style our features.<br>
>><br>
>> <a href="http://mapserver.org/development/rfc/ms-rfc-102.html" target="_blank">http://mapserver.org/development/rfc/ms-rfc-102.html</a><br>
>><br>
>> I'll be calling for vote on it next week.<br>
>><br>
>> Thanks,<br>
>> Alan<br>
>><br>
>> --<br>
>> Alan Boudreault<br>
>> <a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com/</a><br>
>> _______________________________________________<br>
>> mapserver-dev mailing list<br>
>> <a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
<br>
<br>
--<br>
Alan Boudreault<br>
<a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com/</a><br>
_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
<br>
<br>
_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
</div></div></blockquote></div><br></div>