[mapserver-users] Fatal error: Call to undefined function: querybyattributes()
David Boggio
sig at manobi.sn
Thu Nov 21 07:12:05 PST 2002
Armin,
Thanks a lot, your syntax works perfectly. I had not tried to put the
field name between quotes, although I thought I had tried everything!
Isn't there a IN operator ?
For example : setFilter("('[YOUR_FIELD]' IN
('3c84fb819c517','3c691cde3d1a7'))")
Thanks again
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 Armin
Burger
Envoyé : jeudi 21 novembre 2002 12:33
À : mapserver-users at lists.gis.umn.edu
Objet : Re: RE : [mapserver-users] Fatal error: Call to undefined
function: querybyattributes()
David,
for more than one item I don't know exactly if this kind of definition
works. A filter definition like the following should work anyway:
setFilter("('[YOUR_FIELD]'='3c84fb819c517' OR
'[YOUR_FIELD]'='3c691cde3d1a7')")
with the field names (at least for shapefiles) in upper case.
Armin
> 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
---
Incoming 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
---
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