<div dir="ltr">Hi Seth: Good questions!<div><ol><li>It can be anywhere a user wants. I would expect something like /opt/mapserver/etc/mapserver.conf. Perhaps a default location could be set (as Dan suggests) in code.</li><li>Good idea... The config object can certainly be extended easily to accommodate such a thing. It's really just a matter of identifying opportunities to capitalize on. I'd leave that as largely being out of scope for the initial work. I suppose we could add the GLOBAL keyword and perhaps FONTSET/SYMBOLSET support for demonstration purposes.</li><li>Yes, exactly. We'd resolve the plugin name in that driver. If the config object is not NULL in the mapfile then the name would have to resolve...</li><li>I'm +0 on this... I think it's relatively easy to do in maplexer.l though...</li></ol><div>At the moment this has no impact on MapScript. I was thinking perhaps we could add a method to optionally load a config file independently of a mapfile. Thoughts?</div><div><br></div><div>--Steve</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 15, 2021 at 4:45 PM Seth G <<a href="mailto:sethg@geographika.co.uk">sethg@geographika.co.uk</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"><u></u><div><div>Hi Steve,<br></div><div><br></div><div>Seems a very useful addition IMO. A few quesions I don't see covered in the wiki:<br></div><div><br></div><div>1. Where will the config file be stored? Will it need to be in the same folder as the mapserv executable?<br></div><div>2. Would you ever envisage global settings being set in the file and the applied to all Mapfiles, unless overriden (so settings would be cascaded downwards)? E.g. something like the following would allow all Mapfiles to use the same symbolset and font files unless specified in a Mapfile:<br></div><div><br></div><div>GLOBALS<br></div><div>    SYMBOLSET "symbols/symbols.sym"<br></div><div>    FONTSET "fonts/fontset.txt"<br></div><div>    WEB<br></div><div>        IMAGEPATH "/tmp/"<br></div><div>        IMAGEURL "tmp/"<br></div><div>    END<br></div><div>    METADATA<br></div><div>        "ows_enable_request"   "*"<br></div><div>    END<br></div><div>END<br></div><div><br></div><div>3. Any proposed syntax for the PLUGINS section?<br></div><div><br></div><div>PLUGINS<br></div><div>    "MSSQL" "ms/plugins/mssql2008/msplugin_mssql2008.dll"<br></div><div>END<br></div><div><br></div><div>Then in the Mapfile:<br></div><div><br></div><div>    PLUGIN "MSSQL"<br></div><div><br></div><div>4. Would it make sense to force quoting of all keys? If there was a future move to allow JSON configs then this might make the parsing simpler (and allow spaces):<br></div><div><br></div><pre><code>  ENV
    "MS_MAP_NO_PATH" "true"
  END
  MAPS
    "MAP1" "/opt/mapserver/myapp/map1.map"
    "MAP2" "/opt/mapserver/myapp/map2.map"
  END</code><br></pre><div><br></div><div><br></div><div>Seth<br></div><div><br></div><div id="gmail-m_-6859443715214632047sig62266145"><div>--<br></div><div>web:<a href="http://geographika.co.uk" target="_blank">http://geographika.co.uk</a><br></div><div>twitter: @geographika<br></div></div><div><br></div><div><br></div><div>On Tue, Jun 15, 2021, at 7:04 PM, Steve Lime wrote:<br></div><blockquote type="cite" id="gmail-m_-6859443715214632047qt"><div dir="ltr"><div>Hi all: Just checking on folks thoughts on moving forward with a config file. There was a bit of discussion back in early April...<br></div><div><br></div><div>  <a href="https://github.com/sdlime/mapserver/wiki/MapServer-8.0-Config-File" target="_blank">https://github.com/sdlime/mapserver/wiki/MapServer-8.0-Config-File</a><br></div><div><br></div><div>Would be nice to move on it sooner rather than later.<br></div><div><br></div><div>--Steve<br></div><div><br></div></div><div>_______________________________________________<br></div><div>mapserver-dev mailing list<br></div><div><a href="mailto:mapserver-dev%40lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br></div><div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br></div><div><br></div></blockquote><div><br></div></div></blockquote></div>