Query filter question

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Query filter question

Stephen Crawford
All,

I use a filter xml in the URL to get one feature from a featurelayer, like
this:

<Filter><PropertyIsEqualTo><PropertyName>areasymbol</PropertyName><Literal>P
A605
</Literal></PropertyIsEqualTo></Filter>

This gets me the feature whose areasymbol = PA605

Is there a way for me to get all the features whose areasymbol is LIKE PA%,
with % as the wildcard?


Thanks,
Steve

Stephen Crawford
Center for Environmental Informatics
GeoVISTA Center
The Pennsylvania State University
814.865.9905
[hidden email]



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: Query filter question

alexander-petkov
On 1/10/06, Stephen Crawford <[hidden email]> wrote:

> All,
>
> I use a filter xml in the URL to get one feature from a featurelayer, like
> this:
>
> <Filter><PropertyIsEqualTo><PropertyName>areasymbol</PropertyName><Literal>P
> A605
> </Literal></PropertyIsEqualTo></Filter>
>
> This gets me the feature whose areasymbol = PA605
>
> Is there a way for me to get all the features whose areasymbol is LIKE PA%,
> with % as the wildcard?

Hi Steve:

I believe you need:

<Filter>
<PropertyIsLike wildCard="%">
<PropertyName>areasymbol</PropertyName>
<Literal>PA%</Literal>
</PropertyIsLike>
</Filter>
N�HY޵隊X���'���u���[�������
ަ�k��!���W�~�鮆�zk��C� 塧m����@^ǚ��^��z�Z�f�z�j�!�x2�������ɫ,��� a{� �,�H��4�m���i�(��ܢo�v'��jYhr'ׯ:�rX��g����z��z�&j)b� b�ў�ǫ�����+-��.�ǟ����a��l��b��,���y�+��޷�b��?�+-�w������z��z�