[Geoserver-users] Getfeature URL with 2 filter option

I am using geoserver . in the URL i want to use 2 filters like:

http://localhost:9080/geoserver/wfs?request=GetFeature&typename=topp:states&srs=EPSG:4326>&outputFormat=GML2&filter=<Filter><PropertyIsEqualTo><PropertyName>STATE\_NAME</PropertyName><Literal>Texas</Literal></PropertyIsEqualTo></Filter
and also BBOX=-175.102613,40.212597,-72.361859,41.512517 . If I use the
the &BBox I will get the error. how to use the <AND> clause. in the
filter option.

--
View this message in context: http://www.nabble.com/Getfeature-URL-with-2-filter-option-tp16802278p16802278.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

The following filter should do the trick:

<Filter>
   <And>
      <PropertyIsEqualTo>...</PropertyIsEqualTo>
      <BBOX>
        <PropertyName>[geometry]</PropertyName>
        <gml:Box>
          <gml:coordinates>-175.102613,40.212597 -72.361859,41.512517</gml:coordinates>
        </gml:Box>
      </BBOX>
   </And>
</Filter>

goeserver developer wrote:

I am using geoserver . in the URL i want to use 2 filters like:

http://localhost:9080/geoserver/wfs?request=GetFeature&typename=topp:states&srs=EPSG:4326&gt;&amp;outputFormat=GML2&amp;filter=&lt;Filter&gt;&lt;PropertyIsEqualTo&gt;&lt;PropertyName&gt;STATE\_NAME&lt;/PropertyName&gt;&lt;Literal&gt;Texas&lt;/Literal&gt;&lt;/PropertyIsEqualTo&gt;&lt;/Filter
and also BBOX=-175.102613,40.212597,-72.361859,41.512517 . If I use the
the &BBox I will get the error. how to use the <AND> clause. in the filter option.

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com