<div dir="ltr"><div><div><div><div>Hi,<br>thx for response.<br>I see the example. Its pretty interesting.<br>Also another option I found in the documentation:<br><a href="http://mapserver.org/cgi/runsub.html">http://mapserver.org/cgi/runsub.html</a><br>
<br></div>I see in the MS6.2 should be possible to act on <br></div>DATA and DATAPATTERN.<br><br></div>I guess this could be a good choice, but no  other information on this and how to use.<br>Is this runtime substitution for DATA and DATAPATTERN really available ?<br>
<br></div>Thx,<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/18 Kralidis,Tom [Ontario] <span dir="ltr"><<a href="mailto:Tom.Kralidis@ec.gc.ca" target="_blank">Tom.Kralidis@ec.gc.ca</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Andrea: you can do something like use runtime substitution (neat example at <a href="http://linfiniti.com/2011/09/making-the-most-of-umn-mapserver-runtime-variable-substitution/" target="_blank">http://linfiniti.com/2011/09/making-the-most-of-umn-mapserver-runtime-variable-substitution/</a>), or MapScript WxS wrappers (<a href="http://mapserver.org/ogc/mapscript.html#python-examples" target="_blank">http://mapserver.org/ogc/mapscript.html#python-examples</a>).<br>

<br>
<br>
<br>
From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] On Behalf Of Andrea Peri<br>

Sent: June 18, 2013 2:27 PM<br>
To: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
Subject: [mapserver-users] Select the dataset at runtime<br>
<div class="HOEnZb"><div class="h5"><br>
Hi,<br>
Is possible to change at runtime the datasource of a layer using a parameter of the request to choose the dataset ?<br>
I'm explain better.<br>
I have two datasource of the same physical phenomenon.<br>
The first is at 96dpi and the second at 300dpi.<br>
<br>
I like to show the first when the user see it on a webgis and ask it using a request getmap with the extra parameter map_resolution=96<br>
Instead the mapserver should return the second dataset when the request has an extra_parameter map_resolution=300 tipically when the user call it for a print at high resolution.<br>
I'm trying to avoid to set two distinct mapserver layers.<br>
To avoid the user should change the layer in the request.<br>
<br>
The solution I'm searching is to allow the use of the parameter "map_resolution" to choose the dataset to use.<br>
<br>
<br>
--<br>
-----------------<br>
Andrea Peri<br>
. . . . . . . . .<br>
qwerty אטלעש<br>
-----------------<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty אטלעש<br>-----------------<br>
</div>