[Mapserver-users] simple php/mapscript questions

Murat Isik muratisik at megatek.com.tr
Fri Dec 12 12:21:57 EST 2003


Thank you:)
I will try that...


----- Original Message -----
From: "Eric Bridger" <eric at gomoos.org>
To: "Murat Isik" <muratisik at megatek.com.tr>
Cc: "Christian Blumer" <christian.blumer at epfl.ch>; "Mapserver List"
<mapserver-users at lists.gis.umn.edu>
Sent: Friday, December 12, 2003 12:43 PM
Subject: Re: [Mapserver-users] simple php/mapscript questions


> 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