Paul via MapServer-users:
> Thanx for the suggestions Kaido, Seth, Steve. Updating the mapfile at
> deployment indeed is a better option then the querystring approach, let me
> verify what scripting options (sed?) i have on our docker image.
If you omit setting the ows_onlineresource (just try
This is exactly why PHP MapScript has been so popular for so long
("wrappers" of OGC services) and why so many examples of this exists in
the MapServer documentation. Honestly though, someday I also hope for a
more direct way to handle these dynamic changes, but until then,
#mapscriptrocks :)
Thanx for the suggestions Kaido, Seth, Steve. Updating the mapfile at
deployment indeed is a better option then the querystring approach, let me
verify what scripting options (sed?) i have on our docker image.
___
MapServer-users mailing list
Hi Paul,
We are using basically the same process as Seth and Steve mentioned.
We are building map files per environment and per node using Chef.
Basically we parameterized the .map file and fill in parameters for every
node when we deploy.
And because we have multiple map files for different
Hi Paul,
The runtime substitution and setting a querystring on the server is a good
approach - have you found any drawbacks to this? Most web servers can set/add
querystrings without any need for further software.
As Steve mentioned the alternative would be to generate Mapfiles for specific
One other thing. One challenge with environment variables is knowing what's
consistently available within a runtime environment - CGI is different from
FastCGI and there are differences across web servers. That's one of the
reasons pre-processing is kind of attractive IMHO. I suppose the v.8
Hi Paul: The idea of referencing environment variables has come up before.
Another example would be to leverage settings injected into cloud
deployments as environment variables (I think there's an old ticket that
was recently re-opened on the topic). I'm not sure what the best way to
handle this
hi list, this has probably been discussed before, but maybe there are updates
(on v8?)
we would like to extract the ows_onlineresource from the environment, instead
of having an administrator to configure it on the mapfile
currently we implement a hack where the webserver layer sends an