Expression so slow ...

Paul james pauljame at GMAIL.COM
Thu Dec 7 14:21:31 EST 2006


Hello guys!

I´m creating a POLYGON layer in mapscript (c#) with a lot of classes like
that :

layerObj _layer = new layerObj(mapaObj);
_layer.classitem = "geocode";
....
while (_reader.Read())
{
            _geo = Convert.ToInt32(_reader["geocode"]);
            _city = _reader["city"].ToString();

              classObj _class = new classObj(_layer);
            _class.name = __city;
            _class.template = "dummy";

            _class.setExpression(_geo.ToString());

            styleObj _style = new styleObj(_class);
            _style.color.setRGB(_num.Next(0, 255), _num.Next(0, 255),
_num.Next(0, 255));
}

All works great, so I got a Themathic map (very fast - about 2secs)
The problem occurs when I started to aproximate to one new POLYGON (Zoomin).

Each zoom took more and more time (about 8-10secs) to draw the map. Its very
strange...
Did I miss anything?

ps.: I´m using Mapserver 4.10, windows xp and C#

[]´s
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061207/f72342cf/attachment.html


More information about the mapserver-users mailing list