[Mapserver-users] Update: Maybe queryByAttributes should be queryByAttribute

Ryan, Adam ARyan at co.linn.or.us
Mon Apr 5 15:12:40 EDT 2004


For my needs, I've solved the queryByAttributes dilema...I don't use it.

Instead, I take my complex expression and set it as the layers filter...





Adam Ryan
GIS Analyst
Linn County GIS Department
County Courthouse / Room 25
300 SW Fourth Ave.
Albany, OR 97321
541.812.8760
aryan at co.linn.or.us
 


-----Original Message-----
From: Ryan, Adam [mailto:ARyan at co.linn.or.us] 
Sent: Monday, April 05, 2004 10:36 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] Maybe queryByAttributes should be
queryByAttribute



Hi.

Has anyone successfully queried more than one attribute using PHP mapscript,
ie ('[TWNSHP]'='10' and '[RANGE]'='01')?

I can't use this sort of expression in the qstring parameter of
queryByAttributes, and if I try a combination like...

$qclass->setExpression("('[TWNSHP]'='10' and '[RANGE]'='01')");
$qlayer->queryByAttributes("twnshp","/./",MS_MULTIPLE);

...mapserver crashes.  I know my syntax is correct because either of these
works fine independently.  Am I missing a command?

I've tried all kinds of combinations using expression, filter,
queryByAttribute but can't seem to get it right. 

Any suggestions would be great.

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



More information about the mapserver-users mailing list