[Geoserver-devel] [jira] Created: (GEOS-112) GetFeature and arithmetic filter ADD

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=GEOS-112

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: GEOS-112
    Summary: GetFeature and arithmetic filter ADD
       Type: Bug

     Status: Open
   Priority: Major

Original Estimate: Unknown
Time Spent: Unknown
  Remaining: Unknown

    Project: GeoServer

   Assignee: Chris Holmes
   Reporter: Miguel Ángel Esbrí Palomares

    Created: Wed, 10 Mar 2004 10:25 AM
    Updated: Wed, 10 Mar 2004 10:25 AM
Environment: os = winxp, geoserver 1.1.1

Description:
When I make this request it works, returning the 5 features

<wfs:GetFeature
  version="1.0.0"
  service="WFS"
  outputFormat="GML2"
  xmlns:wfs="http://www.opengis.net/wfs&quot;
  xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.0.0/WFS-basic.xsd">
  
  <wfs:Query typeName="fire:fire">
    <ogc:Filter>
      <ogc:PropertyIsEqualTo>
        <ogc:PropertyName>fire:COUNTY_ID</ogc:PropertyName>
  <ogc:Literal>66</ogc:Literal>
      </ogc:PropertyIsEqualTo>
    </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

But when I request this:

<wfs:GetFeature
  version="1.0.0"
  service="WFS"
  outputFormat="GML2"
  xmlns:wfs="http://www.opengis.net/wfs&quot;
  xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.0.0/WFS-basic.xsd">
  
  <wfs:Query typeName="fire:fire">
    <ogc:Filter>
      <ogc:PropertyIsEqualTo>
        <ogc:PropertyName>fire:COUNTY_ID</ogc:PropertyName>
        <ogc:Add>
          <ogc:Literal>65</ogc:Literal>
          <ogc:Literal>1</ogc:Literal>
        </ogc:Add>
      </ogc:PropertyIsEqualTo>
    </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

I only get this:

<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs&quot; xmlns:fire="http://picasso.dlsi.uji.es/schemas/oklahoma/fire&quot; xmlns:gml="http://www.opengis.net/gml&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://picasso.dlsi.uji.es/schemas/oklahoma/fire http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=fire:fire http://www.opengis.net/wfs http://localhost:8080/geoserver/data/capabilities/wfs/1.0.0/WFS-basic.xsd&quot;&gt; <gml:boundedBy> <gml:Box srsName="http://www.opengis.net/gml/srs/epsg\.xml\#13869&quot;&gt; <gml:coordinates decimal="." cs="," ts=" ">0,0 0,-1 -1,-1 -1,0</gml:coordinates> </gml:Box> </gml:boundedBy></wfs:FeatureCollection>

---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira