<html>
  <head>

  </head>
  <body 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&#44;</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&#44; 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&#63;A&#61;first</font></u></i></a><font color="#0000ff" face="Comic Sans MS" size="3">&nbsp;thing&amp;b&#61;second thing&amp;c&#61;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&#44; Michael ERDC-CRREL-NH&quot; &lt;Michael.Smith@usace.army.mil&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">
      <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>&#40;databases&#41;. 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&#160;&#32;2:51 PM&#44; &quot;Stephen Woodbridge&quot; &lt;woodbri@swoodbridge.com&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&#44; 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;&#160;&#160;&#32;INCLUDE &quot;client-params-&#37;client_id&#37;.inc&quot;<br>&gt;&#160;&#160;&#32;...<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;/http://localhost/cgi-bin/mapserv&#63;client_id&#61;123&amp;mode&#61;map&amp;map&#61;/path/to/mapf<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&#44; or a wrapper script&#44;<br>&gt;or a session variable&#44; or manually&#44; etc.<br>&gt;<br>&gt;-Steve W<br>&gt;<br>&gt;On 10/3/2011 2:39 PM&#44; reholl wrote:<br>&gt;&gt; I&#39;m interested in working on capabilities along these lines.&#160;&#32;Are there<br>&gt;&gt; existing RFCs that touch on this&#63;&#160;&#32;If not&#44; perhaps one should be<br>&gt;&gt;created.<br>&gt;&gt;<br>&gt;&gt; This overlaps some configuration ideas I&#39;ve been mulling over.&#160;&#32;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&#39;t turn the mapfile and internal<br>&gt;&gt;mapserv<br>&gt;&gt; into spaghetti..<br>&gt;&gt;<br>&gt;&gt; Jukka Rahkonen &#40;have I ordered your name properly&#63;&#41;&#44; do you want to<br>&gt;&gt;start an<br>&gt;&gt; RFC on this&#63;<br>&gt;&gt;<br>&gt;&gt; To anyone -- would this conversation typically migrate over to &#39;dev&#39; &#63;<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&#39;d just<br>&gt;&gt; need someone to lead the effort.<br>&gt;&gt;<br>&gt;&gt; On 11-10-03 12:12 AM&#44; Rahkonen Jukka wrote:<br>&gt;&gt;&gt; Hi&#44;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Inspired by the Thomas Bonfort&#39;s rendering chain I have been thinking<br>&gt;&gt;&gt;if<br>&gt;&gt;&gt; we could have a native support for using&#160;&#32;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&#44; somehow like<br>&gt;&gt;&gt; MAP<br>&gt;&gt;&gt; SET &quot;pedestrian_clr&quot;&#160;&#32;&quot;&#35;fafaf5&quot;<br>&gt;&gt;&gt; SET &quot;forest_clr&quot; &quot;&#35;dcdcb4&quot;<br>&gt;&gt;&gt; SET &quot;industrial_clr&quot; &quot;&#35;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 &#37;pedestrian_clr&#37;<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.&#160;&#32;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; mapserver-users@lists.osgeo.org<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;mapserver-users@lists.osgeo.org<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>mapserver-users@lists.osgeo.org<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>
    </table>
  </body>
</html>