[mapserver-users] Fatal error: Call to undefined function: querybyattributes()

David Boggio sig at manobi.sn
Thu Nov 21 06:45:18 EST 2002


Hi,

I've been able to use querybyattributes on a layer, thanks to Daniel's
help.
It works fine with a single item :

	$oLayer = $gpoMap->getlayerbyname("connexions"); //get
neighborhood layer
	$oLayer->setfilter("\"3c84fb819c517\"");
	$oLayer->querybyattributes(MS_MULTIPLE);
	$img = $gpoMap->drawQuery();

But I can't find the syntax for a multiple query. I tried :

	$oLayer->setfilter("\"3c84fb819c517\"|\"3c691cde3d1a7\"");

But it does not seem to work. The query only returns the first point.
Has any got the right syntax?
Thanks

David Boggio



-----Message d'origine-----
De : owner-mapserver-users at lists.gis.umn.edu
[mailto:owner-mapserver-users at lists.gis.umn.edu] De la part de Daniel
Morissette
Envoyé : jeudi 21 novembre 2002 03:13
À : David Boggio
Cc : mapserver-users at lists.gis.umn.edu
Objet : Re: [mapserver-users] Fatal error: Call to undefined function:
querybyattributes()


> David Boggio wrote:
> 
> I have installed Mapserver 3.6.1, and I'm trying to use the 
> QueryByAttributes function in my script. But I keep getting this error

> message :
> 
> Fatal error: Call to undefined function: querybyattributes()
> 

Note that queryByAttributes() is available only in the layerObj.  Are
you using $map->queryByAttributes() by any chance?

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.417 / Virus Database: 233 - Release Date: 08/11/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/2002
 





More information about the mapserver-users mailing list