Bug? "Function" does not seem to work

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug? "Function" does not seem to work

Mike Atkinson-2

I’m running geoserver-1.3.0-RC1-WCS

 

Performing this query:

 

<wfs:GetFeature service="WFS" version="1.0.0"

  outputFormat="GML2"

  xmlns:topp="http://www.openplans.org/topp"

  xmlns:wfs="http://www.opengis.net/wfs"

  xmlns="http://www.opengis.net/ogc"

  xmlns:gml="http://www.opengis.net/gml"

  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">

  <wfs:Query typeName="Customer:POLYS">

    <Filter>

      <And>

        <Intersects>

          <PropertyName>GEOMETRY</PropertyName>

          <gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4277">

            <gml:coordinates>380032.6,89329</gml:coordinates>

          </gml:Point>

        </Intersects>

        <PropertyIsGreaterThan>

          <Function name="Area">

            <PropertyName>GEOMETRY</PropertyName>

          </Function>

          <Literal>100</Literal>

        </PropertyIsGreaterThan>

      </And>       

    </Filter>

  </wfs:Query>

</wfs:GetFeature>

 

I get the following error:

 

ServiceExceptionReport version="1.2.0" xsi:schemaLocation="http://www.opengis.net/ogc http://localhost:8080/geoserver/data/capabilities//wfs/1.0.0/OGC-exception.xsd">

<ServiceException locator="org.vfny.geoserver.util.requests.readers.XmlRequestReader">

org.xml.sax.SAXException: Attempted to construct illegal filter - I dont understand the tag: Function.  HINT: tags are case-sensitive!  

</ServiceException>

</ServiceExceptionReport>

 

 

 

 

 

The getCapabilities returns:

 

 

<ogc:Filter_Capabilities>

            <ogc:Spatial_Capabilities>

<ogc:Spatial_Operators>

<ogc:Disjoint/>

<ogc:Equals/>

<ogc:DWithin/>

<ogc:Beyond/>

<ogc:Intersect/>

<ogc:Touches/>

<ogc:Crosses/>

<ogc:Within/>

<ogc:Contains/>

<ogc:Overlaps/>

<ogc:BBOX/>

</ogc:Spatial_Operators>

</ogc:Spatial_Capabilities>

            <ogc:Scalar_Capabilities>

<ogc:Logical_Operators/>

                        <ogc:Comparison_Operators>

<ogc:Simple_Comparisons/>

<ogc:Between/>

<ogc:Like/>

<ogc:NullCheck/>

</ogc:Comparison_Operators>

                        <ogc:Arithmetic_Operators>

<ogc:Simple_Arithmetic/>

                                    <ogc:Functions>

                                                <ogc:Function_Names>

<ogc:Function_Name nArgs="1">Area</ogc:Function_Name>

<ogc:Function_Name nArgs="2">Min</ogc:Function_Name>

<ogc:Function_Name nArgs="2">Max</ogc:Function_Name>

<ogc:Function_Name nArgs="0">length</ogc:Function_Name>

<ogc:Function_Name nArgs="2">EqualInterval</ogc:Function_Name>

<ogc:Function_Name nArgs="1">Collection_Min</ogc:Function_Name>

</ogc:Function_Names>

</ogc:Functions>

</ogc:Arithmetic_Operators>

</ogc:Scalar_Capabilities>

</ogc:Filter_Capabilities>

</WFS_Capabilities>

Reply | Threaded
Open this post in threaded view
|

Re: Bug? "Function" does not seem to work

Chris Holmes-2
I believe this is a known bug, it may be fixed in the normal rc1, or
perhaps in cvs.  You may try doing xmlns:ogc and using the ogc: prefix,
I vaguely remember that this might have been not quite getting the
namespacing right, but that if you did an ogc: prefix then it would be
ok.  Can't quite recall though.

best regards,

Chris

Quoting Mike Atkinson <[hidden email]>:

> I'm running geoserver-1.3.0-RC1-WCS
>
>
>
> Performing this query:
>
>
>
> <wfs:GetFeature service="WFS" version="1.0.0"
>
>   outputFormat="GML2"
>
>   xmlns:topp="http://www.openplans.org/topp"
>
>   xmlns:wfs="http://www.opengis.net/wfs"
>
>   xmlns="http://www.opengis.net/ogc"
>
>   xmlns:gml="http://www.opengis.net/gml"
>
>   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">
>
>   <wfs:Query typeName="Customer:POLYS">
>
>     <Filter>
>
>       <And>
>
>         <Intersects>
>
>           <PropertyName>GEOMETRY</PropertyName>
>
>           <gml:Point
> srsName="http://www.opengis.net/gml/srs/epsg.xml#4277">
>
>             <gml:coordinates>380032.6,89329</gml:coordinates>
>
>           </gml:Point>
>
>         </Intersects>
>
>         <PropertyIsGreaterThan>
>
>           <Function name="Area">
>
>             <PropertyName>GEOMETRY</PropertyName>
>
>           </Function>
>
>           <Literal>100</Literal>
>
>         </PropertyIsGreaterThan>
>
>       </And>
>
>     </Filter>
>
>   </wfs:Query>
>
> </wfs:GetFeature>
>
>
>
> I get the following error:
>
>
>
> ServiceExceptionReport version="1.2.0"
> xsi:schemaLocation="http://www.opengis.net/ogc
>
http://localhost:8080/geoserver/data/capabilities//wfs/1.0.0/OGC-excepti

> on.xsd">
>
> <ServiceException
> locator="org.vfny.geoserver.util.requests.readers.XmlRequestReader">
>
> org.xml.sax.SAXException: Attempted to construct illegal filter - I
> dont
> understand the tag: Function.  HINT: tags are case-sensitive!
>
> </ServiceException>
>
> </ServiceExceptionReport>
>
>
>
>
>
>
>
>
>
>
>
> The getCapabilities returns:
>
>
>
>
>
> <ogc:Filter_Capabilities>
>
>             <ogc:Spatial_Capabilities>
>
> <ogc:Spatial_Operators>
>
> <ogc:Disjoint/>
>
> <ogc:Equals/>
>
> <ogc:DWithin/>
>
> <ogc:Beyond/>
>
> <ogc:Intersect/>
>
> <ogc:Touches/>
>
> <ogc:Crosses/>
>
> <ogc:Within/>
>
> <ogc:Contains/>
>
> <ogc:Overlaps/>
>
> <ogc:BBOX/>
>
> </ogc:Spatial_Operators>
>
> </ogc:Spatial_Capabilities>
>
>             <ogc:Scalar_Capabilities>
>
> <ogc:Logical_Operators/>
>
>                         <ogc:Comparison_Operators>
>
> <ogc:Simple_Comparisons/>
>
> <ogc:Between/>
>
> <ogc:Like/>
>
> <ogc:NullCheck/>
>
> </ogc:Comparison_Operators>
>
>                         <ogc:Arithmetic_Operators>
>
> <ogc:Simple_Arithmetic/>
>
>                                     <ogc:Functions>
>
>                                                 <ogc:Function_Names>
>
> <ogc:Function_Name nArgs="1">Area</ogc:Function_Name>
>
> <ogc:Function_Name nArgs="2">Min</ogc:Function_Name>
>
> <ogc:Function_Name nArgs="2">Max</ogc:Function_Name>
>
> <ogc:Function_Name nArgs="0">length</ogc:Function_Name>
>
> <ogc:Function_Name nArgs="2">EqualInterval</ogc:Function_Name>
>
> <ogc:Function_Name nArgs="1">Collection_Min</ogc:Function_Name>
>
> </ogc:Function_Names>
>
> </ogc:Functions>
>
> </ogc:Arithmetic_Operators>
>
> </ogc:Scalar_Capabilities>
>
> </ogc:Filter_Capabilities>
>
> </WFS_Capabilities>
>




----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users