Updatating DATA value of a layer inside a mapfile

Luca Casagrande luca.casagrande at GMAIL.COM
Fri Oct 27 21:14:16 EDT 2006


Hi to all!
I am trying to update the value DATA of a layer called visibility, using php mapscript; those are the lines i am testing:

    $this_layer = $map->getLayerByName('visibility');
    $this_layer->set('data', $data_path );
    $this_layer->set('status', MS_ON);

with

 echo $data_path
 /var/www/localhost/htdocs/wps/wpsoutputs/output-2006-10-28-3-0-2.tif

Notice that if i change by hand the mapfile, putting the DATA path i wrote over here,
all is working fine.

What i am missing?

Bye
Luca
-- 
"Chiunque può simpatizzare col dolore di un amico, ma solo chi ha un
animo nobile riesce a simpatizzare col successo di un amico (Oscar
Wilde)"

LINUX User #411601
GENTOO-GIS Development Team
jabber: casagrande at jabber.linux.it

 



More information about the mapserver-users mailing list