querying a layer by multiple attributes

Josh Hevenor Josh.Hevenor at DPRA.COM
Mon Jan 28 11:20:18 PST 2008


. . . If I want to use PHP MapScript to query a  SDE layer by two
attributes what format do I use? Is there documentation available on
this query format?
 
My first attempt(s) look something like:
 
        if($layer->queryByAttributes("(attr1,attr2)",
"trade_no=$tradeArea, level_x='1'", MS_MULTIPLE)==MS_SUCCESS){
               $numRes = $layer->getNumResults();
               //  . . .  the rest            
 
        }
 
And I'm receiving an error stating that 
        "msSDELayerInitItemInfo(): A specified CLASSITEM, FILTERITEM, or
expression key cannot be found in C:\Inetpub\wwwroot\project\csy.php on
line 9214"
 
Thanks in advance, 

 

 

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/20080128/ecb770d9/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/20080128/ecb770d9/attachment.jpg>


More information about the MapServer-users mailing list