Hi all,
I try to use a filter in a GetFeature request but it doesn’t work. The request return all records of the typename.
Can you help me?
The filter:
ogc:Filter
ogc:PropertyIsEqualTo
ogc:PropertyNamenom</ogc:PropertyName>
ogc:LiteralGRENELLE</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
The request:
http://localhost:8080/geoserver/wfs?version=1.0.0&service=WFS&request=GetFeature&typename=adresses:voie&filter=ogc:Filterogc:PropertyIsEqualToogc:PropertyNamenom</ogc:PropertyName>ogc:LiteralGRENELLE</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>
Regards,
Julien
What version of GeoServer are you using?
Have you tried it with a 'post' request?
You can see examples in the geoserver web admin tool, Demo -> Sample Requests.
Julien JEUDY wrote:
Hi all,
I try to use a filter in a GetFeature request but it doesn’t work. The request return all records of the typename.
Can you help me?
The filter:
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>nom</ogc:PropertyName>
<ogc:Literal>GRENELLE</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
The request:
http://localhost:8080/geoserver/wfs?version=1.0.0&service=WFS&request=GetFeature&typename=adresses:voie&filter=<ogc:Filter><ogc:PropertyIsEqualTo><ogc:PropertyName>nom</ogc:PropertyName><ogc:Literal>GRENELLE</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>
Regards,
Julien
!DSPAM:1003,451be340309081336712104!
------------------------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
!DSPAM:1003,451be340309081336712104!
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:1003,451be340309081336712104!
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org