[mapserver-users] PHP/Mapscript. Problems in function $layer->setFilter()

Daniel Morissette morissette at dmsolutions.ca
Wed Oct 31 10:14:12 EST 2001


> Greg Liapis wrote:
> 
> Hi all,
> I am trying to publish some maps using PostgreSQL with PostGIS and
> PHP/Mapscript.When I access a layer using
> $layer1=$map->getLayerObj(0), everything goes fine untill I try to set
> a filter for that layer using $layer1->setFilter("MyExpression").
> The error I get is: "Fatal error: Call to undefined function:
> setfilter() ...".
> All the other methods of LayerObj class seem to work fine.
> Could anyone help me?
> I am using PHP 4.0.6 and MapServer 3.5 from a couple of weeks ago.
> 

Greg,

$layer->setFilter() had been implmented but was never added as a method
in the layerObj class.  I fixed this and committed a new php_mapscript.c
in CVS in which $layer->setFilter() should work.

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.



More information about the mapserver-users mailing list