C#-Mapscript: Bug in mapObj.insertLayer()
Christian Wilmes
C.Wilmes at GMX.DE
Wed Jul 19 03:21:37 PDT 2006
Tamas,
I didn't test the bug very often, but the Layer which shoult be insert in the map isn't there after calling the method. Instead of it another Layer is twice times in the map. I don't know exactly which of the other Layers it is.
Best Regards
Christian
-------- Original-Nachricht --------
Datum: Wed, 19 Jul 2006 01:03:48 +0200
Von: Tamas Szekeres <szekerest at GMAIL.COM>
An: MAPSERVER-USERS at LISTS.UMN.EDU
Betreff: Re: [UMN_MAPSERVER-USERS] C#-Mapscript: Bug in mapObj.insertLayer()
> Christian,
>
> You are right, a bug report should be posted accordingly.
> Good catch!
>
> How this problem results in error for you?
>
> Tamas
>
>
>
> 2006/7/18, Christian Wilmes <C.Wilmes at gmx.de>:
> > Hi All,
> >
> > I think there is a bug in the method for mapObj.insertLayer(layerObj
> layer, int index). It only works for index = -1.
> >
> > I think reason for that might be in mapobject.c in the function
> msInsertLayerm, line 525:
> >
> > map->layers[map->numlayers].index = nIndex;
> >
> >
> >
> > Is it possible, that something like
> >
> > map->layers[nIndex].index = nIndex;
> >
> > is correct?
> >
> >
> > Best Regards
> > Christian
> > --
> >
> >
> > Echte DSL-Flatrate dauerhaft für 0,- Euro*!
> > "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
> >
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
More information about the MapServer-users
mailing list