<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">I did submit a request very similar to the idea of passing in a MAPFILE as a mapserv parameter a few years back. As I recall there was some discussion about the idea&#44; and there were also the same sorts of reservations about it then&#44; especially the KISS part. &nbsp;In very early uses of MapServer&#44; we used our own wrapper around it to provide this type of functionality&#44; but it ended up too cumbersome to maintain along with different versions of MapServ as they came along&#44; so we let the idea go. &nbsp;It really needs to be passed through MapServer to be a viable option IMO. &nbsp;Otherwise you need to support to many pieces of things to make things very portable.</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">I thought the recent introduction of the browse mode using a OpenLayers template might resurrect the idea to some degree&#44; but that didn&#39;t happen either. &nbsp;I suggested a template passing mechanism for that for example&#44; why restrict to just Openlayers&#44; got some discussion going on it&#44; but that was all.</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">I think it will come about at some point&#44; certainly more folks wanting it now than when I first started asking the question &nbsp;:c&#41; &nbsp;.</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">bobb</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <br>
      <br>
      &gt;&gt;&gt; Stephen Woodbridge &lt;woodbri@swoodbridge.com&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">
              Robert&#44;<br><br>All good questions&#33;<br><br>Here are some thoughts on this.<br><br>1. we all ready have the CGI parameter substitution&#44; but it does require<br>reading the mapfile to get its validation parameters.<br><br>2. we already support includes<br><br>3. you would have to read some of the mapfile to get the connection<br>parameters to access the parameters from a database<br><br>4. I like the idea of getting the mapfile from the database&#44; but I think<br>if I were to go that route&#44; why would I not keep the whole map file in<br>the database&#63; it would be easy to store it as fragments and parameters<br>and do the substitution all in the database and just return a text blob<br>as a mapfile for mapserver to parse. In Postgresql it would be easy to<br>write a few stored procedures to help manage this and implement it on<br>the database side of things.<br><br>5. Follow the KISS principal. Keep is simple&#44; make the approach<br>incremental based on the existing code as much as possible<br><br>-Steve W<br><br>On 10/3/2011 3:59 PM&#44; reholl wrote:<br>&gt; I really like the idea of pulling mapfile resources from RDBMS and URL.<br>&gt; For the URL&#44; I don&#39;t think the communications part poses much of a<br>&gt; challenge&#44; as the cURL stuff used in the OWS client can be repackaged. I<br>&gt; did that once to make a mapserv CONNECTIONTYPE as a SOAP client. I can<br>&gt; certainly picture a somewhat generalized mechanism: &quot;fill ANY mapfile<br>&gt; value from some outside resource that delivers a construct of the proper<br>&gt; form/type.&quot; These resources might be chained or arranged in branches.<br>&gt; &#40;Does this begin to stray into WPS territory..&#63;&#41; Anything of this<br>&gt; complexity poses a risk to performance and readability. There&#39;s<br>&gt; definitely something to be said for the everything-is-right-here aspect<br>&gt; of the mapfile. Does mapserv configuration becomes less &#39;file&#39; and more<br>&gt; &#39;system.&#39; and with what new maintenance headaches&#63; Or another way to<br>&gt; view it: mapfile syntax becomes a de facto programming language&#44; and we<br>&gt; already have mapscript in numerous flavors. What&#39;s the tipping point for<br>&gt; &quot;let&#39;s move this complexity into core mapserver&quot;&#63; Given all these<br>&gt; caveats&#44; I&#39;d love to explore this further... Robert Hollingsworth<br>&gt;<br>&gt;&#160;&#160;&#160;&#160;&#32;blammo wrote:<br>&gt;&#160;&#160;&#160;&#160;&#32;All&#44; Would adding in INCLUDEs from a URL be pushing it too much&#44; as<br>&gt;&#160;&#160;&#160;&#160;&#32;in: INCLUDE &quot;http://Myserver.com/cgi-bin/myscript.pl&quot; Could pass in<br>&gt;&#160;&#160;&#160;&#160;&#32;parameters like so . . . INCLUDE<br>&gt;&#160;&#160;&#160;&#160;&#32;&quot;http://Myserver.com/cgi-bin/myscript.pl&#63;A&#61;first thing&amp;b&#61;second<br>&gt;&#160;&#160;&#160;&#160;&#32;thing&amp;c&#61;third thing . . .&quot; bobb &gt;&gt;&gt; &quot;Smith&#44; Michael ERDC-CRREL-NH&quot;<br>&gt;&#160;&#160;&#160;&#160;&#32;&lt;&#91;hidden email&#93; &lt;/user/SendEmail.jtp&#63;type&#61;node&amp;node&#61;6856380&amp;i&#61;0&gt;&gt;<br>&gt;&#160;&#160;&#160;&#160;&#32;wrote: There is an RFC to have includes come from non-file<br>&gt;&#160;&#160;&#160;&#160;&#32;connections &#40;databases&#41;. It would be another option<br>&gt;&#160;&#160;&#160;&#160;&#32;<a href="http://mapserver.org/development/rfc/ms-rfc-74.html">http://mapserver.org/development/rfc/ms-rfc-74.html</a>&nbsp;Mike -- Michael<br>&gt;&#160;&#160;&#160;&#160;&#32;Smith Remote Sensing/GIS Center US Army Corps of Engineers On<br>&gt;&#160;&#160;&#160;&#160;&#32;10/3/11 2:51 PM&#44; &quot;Stephen Woodbridge&quot; &lt;&#91;hidden email&#93;<br>&gt;&#160;&#160;&#160;&#160;&#32;&lt;/user/SendEmail.jtp&#63;type&#61;node&amp;node&#61;6856380&amp;i&#61;1&gt;&gt; wrote: &gt;One idea<br>&gt;&#160;&#160;&#160;&#160;&#32;regarding this that you might want to consider is the ability &gt;to<br>&gt;&#160;&#160;&#160;&#160;&#32;put all the named parameters in an include file&#44; then be able to<br>&gt;&#160;&#160;&#160;&#160;&#160;&#32;&gt;include that file via a CGI parameter. So it might look like this:<br>&gt;&#160;&#160;&#160;&#160;&#160;&#32;&gt; &gt;<br>&gt;<br>&gt;<br>&gt; View this message in context: Re: Feature wish: Internal mapfile<br>&gt; variables<br>&gt; &lt;<a href="http://osgeo-org.1803224.n2.nabble.com/Feature-wish-Internal-mapfile-variables-tp6853853p6856380.html">http://osgeo-org.1803224.n2.nabble.com/Feature-wish-Internal-mapfile-variables-tp6853853p6856380.html</a>&gt;<br>&gt; Sent from the Mapserver - User mailing list archive<br>&gt; &lt;<a href="http://osgeo-org.1803224.n2.nabble.com/Mapserver-User-f1969211.html">http://osgeo-org.1803224.n2.nabble.com/Mapserver-User-f1969211.html</a>&gt; at<br>&gt; Nabble.com.<br>&gt;<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>