<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>With oracle at least, you could pull from a url (via a query) and return data back to MS&nbsp;</div>
<div><br>
</div>
<div>Mike</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Bob Basques &lt;<a href="mailto:Bob.Basques@ci.stpaul.mn.us">Bob.Basques@ci.stpaul.mn.us</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Mon, 3 Oct 2011 14:18:54 -0500<br>
<span style="font-weight:bold">To: </span>&quot;<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&quot; &lt;<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&gt;, Stephen Woodbridge &lt;<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>&gt;,
 Michael Smith &lt;<a href="mailto:michael.smith@usace.army.mil">michael.smith@usace.army.mil</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>Re: [mapserver-users] Re: Feature wish: Internal mapfile variables<br>
</div>
<div><br>
</div>
<div>
<div style="margin-left: 4px; line-height: normal; font-style: normal; margin-bottom: 1px; font-size: 12pt; margin-top: 4px; font-family: Comic Sans MS; font-weight: normal; font-variant: normal; margin-right: 4px">
<p style="margin-top: 0; margin-bottom: 0"><font size="3" face="Comic Sans MS">All,</font>
</p>
<br>
<p style="margin-top: 0; margin-bottom: 0"><font size="3" face="Comic Sans MS">Would adding in INCLUDEs from a URL be pushing it too much, as in:</font>
</p>
<br>
<p style="margin-top: 0; margin-bottom: 0"><font size="3" face="Comic Sans MS">INCLUDE &quot;</font><i><a href="http://Myserver.com/cgi-bin/myscript.pl"><u><font color="#0000ff" face="Comic Sans MS" size="3">http://Myserver.com/cgi-bin/myscript.pl</font></u></a></i><font size="3" face="Comic Sans MS">&quot;</font>
</p>
<br>
<p style="margin-top: 0; margin-bottom: 0"><font size="3" face="Comic Sans MS">Could pass in parameters like so . . .</font>
</p>
<br>
<p style="margin-top: 0; margin-bottom: 0"><font size="3" face="Comic Sans MS">INCLUDE &quot;</font><a href="http://Myserver.com/cgi-bin/myscript.pl?A=first"><i><u><font color="#0000ff" face="Comic Sans MS" size="3">http://Myserver.com/cgi-bin/myscript.pl?A=first</font></u></i></a><font color="#0000ff" face="Comic Sans MS" size="3">&nbsp;thing&amp;b=second
 thing&amp;c=third thing . . .</font><font size="3" face="Comic Sans MS">&quot;</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0"><font size="3" face="Comic Sans MS">bobb</font>
</p>
<br>
<br>
<p style="margin-top: 0; margin-bottom: 0"><br>
<br>
&gt;&gt;&gt; &quot;Smith, Michael ERDC-CRREL-NH&quot; &lt;<a href="mailto:Michael.Smith@usace.army.mil">Michael.Smith@usace.army.mil</a>&gt; wrote:<br>
</p>
<table border="0" style="margin-left: 15px; margin-bottom: 0; font-size: 1em; margin-top: 0; margin-right: 0" bgcolor="#f3f3f3">
<tbody>
<tr>
<td>
<div style="border-left: solid 1px #050505; padding-left: 7px">
<p style="margin-top: 0; margin-bottom: 0">There is an RFC to have includes come from non-file connections<br>
(databases). It would be another option<br>
<br>
<a href="http://mapserver.org/development/rfc/ms-rfc-74.html">http://mapserver.org/development/rfc/ms-rfc-74.html</a><br>
<br>
<br>
Mike<br>
<br>
--<br>
Michael Smith<br>
<br>
Remote Sensing/GIS Center<br>
US Army Corps of Engineers<br>
<br>
<br>
<br>
On 10/3/11&nbsp; 2:51 PM, &quot;Stephen Woodbridge&quot; &lt;<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>&gt; wrote:<br>
<br>
&gt;One idea regarding this that you might want to consider is the ability<br>
&gt;to put all the named parameters in an include file, then be able to<br>
&gt;include that file via a CGI parameter. So it might look like this:<br>
&gt;<br>
&gt;<br>
&gt;MAP<br>
&gt;&nbsp;&nbsp; INCLUDE &quot;client-params-%client_id%.inc&quot;<br>
&gt;&nbsp;&nbsp; ...<br>
&gt;END<br>
&gt;<br>
&gt;And then you could have parameter files like:<br>
&gt;<br>
&gt;client-params-27.inc<br>
&gt;client-params-123.inc<br>
&gt;etc.<br>
&gt;<br>
&gt;And these would include nothing but your SET ... commands.<br>
&gt;<br>
&gt;Then when requesting the map:<br>
&gt;<br>
&gt;/<a href="http://localhost/cgi-bin/mapserv?client_id=123&amp;mode=map&amp;map=/path/to/mapf">http://localhost/cgi-bin/mapserv?client_id=123&amp;mode=map&amp;map=/path/to/mapf</a><br>
&gt;ile.map&amp;...<br>
&gt;<br>
&gt;This would make it very easy to manage a single mapfile for parameters<br>
&gt;that are different for each client/user.<br>
&gt;<br>
&gt;Obviously the client_id could be set via a cookie, or a wrapper script,<br>
&gt;or a session variable, or manually, etc.<br>
&gt;<br>
&gt;-Steve W<br>
&gt;<br>
&gt;On 10/3/2011 2:39 PM, reholl wrote:<br>
&gt;&gt; I'm interested in working on capabilities along these lines.&nbsp; Are there<br>
&gt;&gt; existing RFCs that touch on this?&nbsp; If not, perhaps one should be<br>
&gt;&gt;created.<br>
&gt;&gt;<br>
&gt;&gt; This overlaps some configuration ideas I've been mulling over.&nbsp; From the<br>
&gt;&gt; original comment here about internal vars being handy for &quot;/when the<br>
&gt;&gt;same<br>
&gt;&gt; layers are re-used for several customers who like to have a bit<br>
&gt;&gt;different<br>
&gt;&gt; styling for the same source data/&quot; it occurs to me that a matrix or some<br>
&gt;&gt; other constructs more complex than a flat list of internal variables<br>
&gt;&gt;might<br>
&gt;&gt; be called for -- provided they don't turn the mapfile and internal<br>
&gt;&gt;mapserv<br>
&gt;&gt; into spaghetti..<br>
&gt;&gt;<br>
&gt;&gt; Jukka Rahkonen (have I ordered your name properly?), do you want to<br>
&gt;&gt;start an<br>
&gt;&gt; RFC on this?<br>
&gt;&gt;<br>
&gt;&gt; To anyone -- would this conversation typically migrate over to 'dev' ?<br>
&gt;&gt;<br>
&gt;&gt; Robert Hollingsworth<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I agree that this is a request that comes up often. As usual we'd just<br>
&gt;&gt; need someone to lead the effort.<br>
&gt;&gt;<br>
&gt;&gt; On 11-10-03 12:12 AM, Rahkonen Jukka wrote:<br>
&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Inspired by the Thomas Bonfort's rendering chain I have been thinking<br>
&gt;&gt;&gt;if<br>
&gt;&gt;&gt; we could have a native support for using&nbsp; internal mapfile variables.<br>
&gt;&gt;&gt;Now<br>
&gt;&gt;&gt; Thomas is setting for example a bunch of colours in a definition file<br>
&gt;&gt;&gt; which is converted into a real mapfile with python script and c<br>
&gt;&gt;&gt; preprocessor.<br>
&gt;&gt;&gt; <a href="http://mapserver-utils.googlecode.com/svn/trunk/README">http://mapserver-utils.googlecode.com/svn/trunk/README</a><br>
&gt;&gt;&gt; <a href="http://mapserver-utils.googlecode.com/svn/trunk/generate_style.py">http://mapserver-utils.googlecode.com/svn/trunk/generate_style.py</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I would like to see a simple way for setting the variables directly in<br>
&gt;&gt;&gt;the<br>
&gt;&gt;&gt; mapfile, somehow like<br>
&gt;&gt;&gt; MAP<br>
&gt;&gt;&gt; SET &quot;pedestrian_clr&quot;&nbsp; &quot;#fafaf5&quot;<br>
&gt;&gt;&gt; SET &quot;forest_clr&quot; &quot;#dcdcb4&quot;<br>
&gt;&gt;&gt; SET &quot;industrial_clr&quot; &quot;#ebe5d9&quot;<br>
&gt;&gt;&gt; ....<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; And then later in the layers use<br>
&gt;&gt;&gt; LAYER<br>
&gt;&gt;&gt; .....<br>
&gt;&gt;&gt; COLOR %pedestrian_clr%<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The internal variables could be interpreted only from the mapfile and<br>
&gt;&gt;&gt;they<br>
&gt;&gt;&gt; could not be altered by the web users.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Internal variable would help in maintaining big mapfiles with repeating<br>
&gt;&gt;&gt; styles like in the OpenStreetMap rendering case.&nbsp; Another use case is<br>
&gt;&gt;&gt;when<br>
&gt;&gt;&gt; the same layers are re-used for several customers who like to have a<br>
&gt;&gt;&gt;bit<br>
&gt;&gt;&gt; different styling for the same source data.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; -Jukka Rahkonen-<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt;<a href="http://osgeo-org.1803224.n2.nabble.com/Feature-wish-Internal-mapfile-vari">http://osgeo-org.1803224.n2.nabble.com/Feature-wish-Internal-mapfile-vari</a><br>
&gt;&gt;ables-tp6853853p6856070.html<br>
&gt;&gt; Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; mapserver-users mailing list<br>
&gt;&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;<br>
&gt;_______________________________________________<br>
&gt;mapserver-users mailing list<br>
&gt;<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt;<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</span>
</body>
</html>