From: Chris H. <ch...@op...> - 2006-05-30 18:13:08
|
You need a 'Filter' in your query, around the PropertyIsEqualTo. See the example requests in the demo section of GeoServer. And check the Filter specification. Your request must follow the rules of the XML for Filters. <Query typeName="tiger:tiger_roads"> <Filter> <PropertyIsEqualTo> <PropertyName>tiger:NAME</PropertyName> <Literal>Washington Sq W</Literal> </PropertyIsEqualTo> </Filter> </Query> I think is what you need. Chris Fei Wang wrote: > Hello, all > > When i use the geoserver sample data to test a getfeature request. I want to use a filter to get the specified tiger_roads feature, but the response returned all the roards without filtering. I could not find the solution. The request is in the following: > Any comment? thanks a lot! > > <wfs:GetFeature service="WFS" version="1.0.0" > outputFormat="GML2" > xmlns:tiger="http://www.census.gov" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> > <Query typeName="tiger:tiger_roads"> > <PropertyIsEqualTo> > <PropertyName>tiger:NAME</PropertyName> > <Literal>Washington Sq W</Literal> > </PropertyIsEqualTo> > </Query> > </wfs:GetFeature> > > > > best regards > fei -- Chris Holmes The Open Planning Project http://topp.openplans.org |