SWIG mapscript removeLayer() comment

Lowell Filak lfilak at MEDINACO.ORG
Tue Apr 12 08:11:33 EDT 2005


The following message was sent by Adam Ryan <aryan at CO.LINN.OR.US> on
Mon, 11 Apr 2005 18:44:20 -0500.

> Woe is the SWIG mapscript user who really wants to help in the development
> of mapserver but works in a Windows shop and could never figure out how to
> compile Mapserver and even if he (or she) could they don't know c so
> combing through the mapserver c files for their particular solution is
> pointless, though nonetheless attempted.  I defer:
>
> Doing mapObj.removeLayer() on a layer with a resultCache fouls up other
> resultCache objects of layers with higher index values.  If layer to be
> removed is turned off instead, no errors ensue.
>
> So I found a work around for myself and thought I'd share it.
>
> Cheers,
>
Adam

Thanks for the info.

Lowell



More information about the mapserver-users mailing list