[mapserver-dev] MapServer 8.0 Config File

Seth G sethg at geographika.co.uk
Tue Jun 15 14:44:41 PDT 2021


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:

GLOBALS
    SYMBOLSET "symbols/symbols.sym"
    FONTSET "fonts/fontset.txt"
    WEB
        IMAGEPATH "/tmp/"
        IMAGEURL "tmp/"
    END
    METADATA
        "ows_enable_request"   "*"
    END
END

3. Any proposed syntax for the PLUGINS section?

PLUGINS
    "MSSQL" "ms/plugins/mssql2008/msplugin_mssql2008.dll"
END

Then in the Mapfile:

    PLUGIN "MSSQL"

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 <mailto:mapserver-dev%40lists.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/20210615/a26b1285/attachment.html>


More information about the mapserver-dev mailing list