<div>Hello all, i am trying to add 2 raster layers dynamically from my php-mapscript. The problem i am facing is these rasters layers are displayed on top of the other vector layers which are in the mapfile, but when i add these raster layers in the mapfile they display correctly, i am not sure if i am doing anything wrong, this is my mapscript </div> <div> </div> <div> </div> <div>$rasterlayer = ms_newLayerObj($map);<BR>$rasterlayer->set(name,raster1);<BR>$rasterlayer->set(type,MS_LAYER_RASTER);<BR>$rasterlayer->set(status,MS_ON);</div> <div>$rasterlayer->set(data,"somepath");</div> <div>$rasterlayer = ms_newLayerObj($map);<BR>$rasterlayer->set("name","raster3");<BR>$rasterlayer->set("type",MS_LAYER_RASTER);<BR>$rasterlayer->set("status",MS_ON);</div> <div>$rasterlayer->set(data,"somepath");</div> <div> </div> <div>//all the vector layers are displayed after this with their properties set</div> <div> </div> <div>one
more problem i have with this is, i have to create a layer object twice, i give the same name or a different doesnt matter but if i dont create the layer object again it throws an error saying the first raster layer(raster1 in my case) failed to draw ..</div> <div> </div> <div>Thanks for your time ....</div> <div>--kris</div><p>
<hr size=1>How low will we go? Check out Yahoo! Messenger’s low <a href="http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com"> PC-to-Phone call rates.