[mapserver-users] Strage behaviour of dynamic classes (color v/s outlinecolor)

Vinko Vrsalovic v at w.cl
Tue Jan 29 08:03:28 PST 2002


On Tue, Jan 29, 2002 at 07:09:49AM -0500, Daniel Morissette wrote:
 
> >     $lay[$layers[$i]]->set("type","MS_LAYER_".$data["tipo"][$i]);
> 
> Passing "MS_LAYER_POLYGON" as a string doesn't have the same meaning as
> passing a constant of MS_LAYER_POLYGON.  Try this:
> 
>     if ($data["tipo"][$i] == "POLYGON")
>     {
>        $lay[$layers[$i]]->set("type", MS_LAYER_POLYGON);
>     }
>     else if (...

What a stupid mistake! I'm totally embarrased... :-)

Thanks a lot, I think that would have been a bug that would have taken
at least a couple of days to find :)

BTW, is there no easy way to check for this at the library level?
(say: "wrong value passed to set" at line X)

Thanks again,
-- 
V. <v at w.cl>



More information about the MapServer-users mailing list