[Mapserver-users] simple php/mapscript questions

Eric Bridger eric at gomoos.org
Fri Dec 12 05:43:54 EST 2003


On Fri, 2003-12-12 at 15:21, Murat Isik wrote:
> in my php I am trying to have lines like these:
> 
> if(whatever_one)
> {
> $layer = $map->getLayerByName(lastpoint);
> $layer->set("status", MS_ON);
> GET DATA FROM THIS LAYER FROM lastpoint (just like "DATA lastpoint" in the map file)
> }elseif(whatever_two)
> {
> $layer = $map->getLayerByName(lastpoint);
> $layer->set("status", MS_ON);
> GET DATA FROM THIS LAYER FROM firstpoint (just like "DATA firstpoint" in the map file)
> }

So the PHP version would be:
$layer->set("data", "/path/to/shapefile/firstpoint");





More information about the mapserver-users mailing list