[mapserver-dev] Dynamicaly writing Mapfiles for WMS-Servers
Stephan Holl
stephan.holl at intevation.de
Tue Feb 16 08:22:11 EST 2010
Hallo Lars,
Lars Lingner <ml at lingner.eu>, [20100215 - 18:52:55]
> Stephan Holl schrieb:
> [...]
> > * Is there a better way to realize a robust way of modfying
> > mapfiles on the fly (without using mapscript).
> >
>
> I don't know if its a better way, but depending on what you want to
> change, you could use runtime substitution [1]
> Define a "template layer" which gets its values by variables.
>
> With some environment variables in an wrapper script you are able to
> first generate your mapfile and then set the path in the wrapper. Or
> define multiple wms services with each having an own mapfile and just
> changing one parameter in the request url. [2]
>
> As a last idea the use of a SLD comes to mind, but only then when you
> want to change the output of MapServer. You cant change data sources,
> so that its maybe not a solution.
Thanks for your solutions, but as you suggested, this will not work in
our case, but runtime variables is quite handy...
Thanks
Stephan
--
Stephan Holl <stephan.holl at intevation.de> | Tel.: +49 (0)541-33 508 3663
Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20100216/b44a07cc/signature.bin
More information about the mapserver-dev
mailing list