[Mapserver-users] simple php/mapscript questions
Eric Bridger
eric@gomoos.org
12 Dec 2003 10:43:54 +0000
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");
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users