[mapserver-users] Re: php mapscript objects in session?
Howard Butler
hobu.inc at gmail.com
Fri Nov 21 20:00:51 PST 2008
On Nov 21, 2008, at 5:35 PM, jim white wrote:
> There must be a way to persist a mapscript object, but I don't know
> enough of OO design to tell you the answer.
Ah, MapScript object persistence... the restless leg syndrome of
MapServer. Though neither convenient nor pretty, the One True Way (TM)
to persist MapScript objects is the mapfile format. Every other
approach will just cause hair loss, unexplained rashes, nausea, and
memory leakage.
The UpdateFromString and save methods are the way to go. Your target
MapScript language has no problem persisting strings, and you don't
have to worry about the mess of object lifetimes that might result
from trying to light up a once dead mapObj.
Howard
More information about the MapServer-users
mailing list