[OpenLayers-Trac] [OpenLayers] #1113: wfs filter: generated URL should not have a bbox if a filter is enabled
OpenLayers
trac at openlayers.org
Fri Jul 4 03:10:50 EDT 2008
#1113: wfs filter: generated URL should not have a bbox if a filter is enabled
-------------------------+--------------------------------------------------
Reporter: ominiverdi | Owner: tschaub
Type: feature | Status: new
Priority: minor | Milestone:
Component: Layer.WFS | Version: 2.5
Resolution: | Keywords:
State: |
-------------------------+--------------------------------------------------
Old description:
> from the [http://www.ominiverdi.org/openlayers/wfs2.html example] a
> simple filter is added:
> ----
> <ogc:Filter xmlns:gml="http://www.opengis.net/gml"
> xmlns:ogc="http://www.opengis.net/ogc">
> <ogc:PropertyIsEqualTo>
> <ogc:PropertyName>SALB0</ogc:PropertyName>
> <ogc:Literal>FRA</ogc:Literal>
> </ogc:PropertyIsEqualTo>
> </ogc:Filter>
>
> ----
>
> the error shown is:
>
> "filter and bbox both specified but are mutually exclusive"
>
>
> [http://www.ominiverdi.org/cgi-
> bin/proxy.cgi?url=http%3A//www.ominiverdi.org%3A8080/geoserver/wfs%3Ftypename%3Dtopp%253Agaul0%26maxfeatures%3D4%26filter%3D%253Cogc%253AFilter%2520xmlns%253Agml%253D%2522http%253A%252F%252Fwww.opengis.net%252Fgml%2522%2520xmlns%253Aogc%253D%2522http%253A%252F%252Fwww.opengis.net%252Fogc%2522%253E%253Cogc%253APropertyIsEqualTo%253E%253Cogc%253APropertyName%253Esalb0%253C%252Fogc%253APropertyName%253E%253Cogc%253ALiteral%253EFRA%253C%252Fogc%253ALiteral%253E%253C%252Fogc%253APropertyIsEqualTo%253E%253C%252Fogc%253AFilter%253E%26SERVICE%3DWFS%26VERSION%3D1.0.0%26REQUEST%3DGetFeature%26SRS%3DEPSG%253A4326%26BBOX%3D-360%2C-360%2C360%2C360
> wrong call] and
> [http://www.ominiverdi.org:8080/geoserver/wfs?typename=topp%3Agaul0&maxfeatures=4&&filter=%3Cogc%3AFilter%20xmlns%3Agml%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%22%20xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%3E%3Cogc%3APropertyIsEqualTo%3E%3Cogc%3APropertyName%3Esalb0%3C%2Fogc%3APropertyName%3E%3Cogc%3ALiteral%3EFRA%3C%2Fogc%3ALiteral%3E%3C%2Fogc%3APropertyIsEqualTo%3E%3C%2Fogc%3AFilter%3E&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&
> good call]
>
> [http://openlayers.org/pipermail/users/2007-October/003350.html patch]
> posted by Lourens Veen
>
> test soon
>
> ciao
> Lorenzo
New description:
from the [http://www.ominiverdi.org/openlayers/wfs2.html example] a
simple filter is added:
{{{
<ogc:Filter xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc">
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>SALB0</ogc:PropertyName>
<ogc:Literal>FRA</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
}}}
the error shown is:
"filter and bbox both specified but are mutually exclusive"
[http://www.ominiverdi.org/cgi-
bin/proxy.cgi?url=http%3A//www.ominiverdi.org%3A8080/geoserver/wfs%3Ftypename%3Dtopp%253Agaul0%26maxfeatures%3D4%26filter%3D%253Cogc%253AFilter%2520xmlns%253Agml%253D%2522http%253A%252F%252Fwww.opengis.net%252Fgml%2522%2520xmlns%253Aogc%253D%2522http%253A%252F%252Fwww.opengis.net%252Fogc%2522%253E%253Cogc%253APropertyIsEqualTo%253E%253Cogc%253APropertyName%253Esalb0%253C%252Fogc%253APropertyName%253E%253Cogc%253ALiteral%253EFRA%253C%252Fogc%253ALiteral%253E%253C%252Fogc%253APropertyIsEqualTo%253E%253C%252Fogc%253AFilter%253E%26SERVICE%3DWFS%26VERSION%3D1.0.0%26REQUEST%3DGetFeature%26SRS%3DEPSG%253A4326%26BBOX%3D-360%2C-360%2C360%2C360
wrong call] and
[http://www.ominiverdi.org:8080/geoserver/wfs?typename=topp%3Agaul0&maxfeatures=4&&filter=%3Cogc%3AFilter%20xmlns%3Agml%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%22%20xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%3E%3Cogc%3APropertyIsEqualTo%3E%3Cogc%3APropertyName%3Esalb0%3C%2Fogc%3APropertyName%3E%3Cogc%3ALiteral%3EFRA%3C%2Fogc%3ALiteral%3E%3C%2Fogc%3APropertyIsEqualTo%3E%3C%2Fogc%3AFilter%3E&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&
good call]
[http://openlayers.org/pipermail/users/2007-October/003350.html patch]
posted by Lourens Veen
test soon
ciao
Lorenzo
--
Ticket URL: <http://trac.openlayers.org/ticket/1113#comment:4>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list