querying two attributes at once

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Mon Aug 16 11:57:27 EDT 2004


OK, my bad! I'll try to correct and clarify.

There are a bunch of query function in mapscript:
queryByPoint
queryByRect
queryByShape
queryByFeature
queryByAttributes  -- not available via CGI interface??

If you are trying to select items by there attributes you probably want
to use queryByAttributes but this does not seem to be available in my
CGI reference doc. The other strategy would be to set up a FILTER and
then queryByRect to cover the area you are interested in. Both of these
methods may be very slow depending on the amount of data you are look at.

the other queryBy* function expect spatial coordinates (like lat/lon) as
input.

Sorry if I confused anyone.

-Steve

Jacob Blankenship wrote:

> Will the query string also support latitude and
> longitude?
>
> --- Stephen Woodbridge <woodbri at SWOODBRIDGE.COM>
> wrote:
>
>
>>Mike Mannomann wrote:
>>
>>>Hi List.
>>>
>>>My problems is, I want to do a query using two
>>
>>items in one shape.  I want
>>
>>>to query a polygon with an expression kind of:
>>
>>town = Berlin and
>>
>>>streetname = abc or something like this and I want
>>
>>to have the result
>>
>>>zoomed.
>>
>>Mike,
>>
>>Try setting your query string to:
>>
>>"[TOWN]='Berlin' && [STREETNAME]='abc'"
>>
>>-Steve W.
>>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail
>



More information about the mapserver-users mailing list