[Mapserver-users] PHP/mapscript, PostGIS, and setFilter

Paul Smith paul@cnt.org
Thu, 5 Dec 2002 18:11:47 -0600


Hello all,

I'm running PHP/mapscript and using PostGIS to store my geography. 
Trouble is, with the setFilter method under a layer, I can use an 
expression that checks for an integer, but not a string value. For 
example:

$streets->setFilter("gid = 76");

works, but

$streets->setFilter("street = 'S Western'");

gives me an HTTP 500 error. I've also tried using different 
combinations of single- and double-quotes, like:

$streets->setFilter('street = "S Western"');

Nuthin'. Same expression works fine directly under psql. What's up?

Paul

--
Paul Smith <paul@cnt.org>
Center for Neighborhood Technology
Chicago, IL USA

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users