php mapscript queryByAttributes
Josh Hevenor
Josh.Hevenor at DPRA.COM
Tue Jan 15 15:18:04 PST 2008
I want to query an SDE layer by two fields...is there documentation on
the format required?
My code looks something like:
if($layer->queryByAttributes("(field1,field2)", "([
field1]=$field1 and [field2]=1", MS_MULTIPLE)==MS_SUCCESS){
$numRes = $layer->getNumResults();
$layer->open();
for($k=0;$k<$numRes;$k++){
$res = $layer->getResult($k);
$shape =
$layer->getShape($res->tileindex, $res->shapeindex);
// do something
. . .
}
And I'm getting an error that looks like:
[MapServer Error]: msSDELayerInitItemInfo(): A specified CLASSITEM,
FILTERITEM, or expression key cannot be found in c:\...
Sorry if this is an obvious thing. I usually take more time to explore
but I have a deadline looming.
PHP 5.2.4
MapServer version 5.0 from latest MS4W
Windows server 2003
Thanks,
Josh Hevenor
Application Developer
____________________________________________
5230 South Service Road
Burlington, Ontario
L7L 5K2 Canada
Email: josh.hevenor at dpra.com
Internet: http://www.dpra.com
Attention:
Privileged/Confidential Information may be contained in this message.
Disclosure to any person other than the named recipient is unauthorized.
If you are not the intended recipient, please delete all copies of this
information and kindly notify the sender by reply email. Opinions,
conclusions and other information in this message that do not relate to
the official business of DPRA shall be understood as neither given nor
endorsed by it. DPRA and any of its subsidiaries reserve the right to
monitor all e-mail communications through its networks. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080115/ee20c9da/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3247 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080115/ee20c9da/attachment.jpg>
More information about the MapServer-users
mailing list