<div dir="ltr">Yep. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 13, 2022 at 9:52 AM Atlanta Geek <<a href="mailto:atlantageek@gmail.com">atlantageek@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">So I would put the INCLUDE in all the layers, correct?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 13, 2022 at 11:05 AM Richard Greenwood <<a href="mailto:richard.greenwood@gmail.com" target="_blank">richard.greenwood@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Use INCLUDE 'pgconn.map'<div><br></div><div>With pgconn.map looking like:</div><div><br></div><div>CONNECTIONTYPE postgis<br>CONNECTION "user=USER password=PASSWORD dbname=DATABASE host=127.0.0.1 port=5432"<br>PROCESSING "CLOSE_CONNECTION=DEFER"<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 13, 2022 at 7:14 AM Atlanta Geek <<a href="mailto:atlantageek@gmail.com" target="_blank">atlantageek@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Is there a way to set the db connection only once for multiple layers.<div>We have a very dynamic mapfile with lots of layers and its a pain to replace the db name when doing development or changing for a customer. We are running ms4w as well.</div><div><br></div><div><br></div><div>In addition to this is it possible to set the connection string outside the mapfile. Maybe as an option to the cgi script or something.<br clear="all"><div><br></div>-- <br><div dir="ltr"><a href="http://www.atlantageek.com" target="_blank">http://www.atlantageek.com</a></div></div></div>
_______________________________________________<br>
MapServer-users mailing list<br>
<a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr">Richard W. Greenwood<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><a href="http://www.atlantageek.com" target="_blank">http://www.atlantageek.com</a></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Richard W. Greenwood<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div>