C#-Mapscript: Bug in mapObj.insertLayer()

Tamas Szekeres szekerest at GMAIL.COM
Fri Jul 21 15:04:00 PDT 2006


Added

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1838

Tamas

2006/7/19, Christian Wilmes <C.Wilmes at gmx.de>:
> 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