[mapserver-dev] MapServer 8.0 Config File

Steve Lime sdlime at gmail.com
Wed Jun 16 07:06:36 PDT 2021

Hi Seth: Good questions!

   1. 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.
   2. 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.
   3. 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
   4. I'm +0 on this... I think it's relatively easy to do in maplexer.l

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?


On Tue, Jun 15, 2021 at 4:45 PM Seth G <sethg at geographika.co.uk> wrote:

> Hi Steve,
> Seems a very useful addition IMO. A few quesions I don't see covered in
> the wiki:
> 1. Where will the config file be stored? Will it need to be in the same
> folder as the mapserv executable?
> 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:
>     SYMBOLSET "symbols/symbols.sym"
>     FONTSET "fonts/fontset.txt"
>     WEB
>         IMAGEPATH "/tmp/"
>         IMAGEURL "tmp/"
>     END
>         "ows_enable_request"   "*"
>     END
> 3. Any proposed syntax for the PLUGINS section?
>     "MSSQL" "ms/plugins/mssql2008/msplugin_mssql2008.dll"
> Then in the Mapfile:
> 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):
>   ENV
>     "MS_MAP_NO_PATH" "true"
>   END
>   MAPS
>     "MAP1" "/opt/mapserver/myapp/map1.map"
>     "MAP2" "/opt/mapserver/myapp/map2.map"
>   END
> Seth
> --
> web:http://geographika.co.uk
> twitter: @geographika
> On Tue, Jun 15, 2021, at 7:04 PM, Steve Lime wrote:
> Hi all: Just checking on folks thoughts on moving forward with a config
> file. There was a bit of discussion back in early April...
>   https://github.com/sdlime/mapserver/wiki/MapServer-8.0-Config-File
> Would be nice to move on it sooner rather than later.
> --Steve
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20210616/2776791d/attachment-0001.html>

More information about the mapserver-dev mailing list