Stefano,

I tried geometry filters on nested features on both WFS1.1 and WFS2.0, no 
record returned. But it does return records if the filter is applied to  
MappedFeature directly.

Is there any working sample available?

Thanks,
Wen

---------------------------------
WFS 2.0

<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature service="WFS" version="2.0.0"  
xmlns:gsml="urn:cgi:xmlns:CGI:GeoSciML:2.0"
          xmlns:gml="http://www.opengis.net/gml/3.2";
    xmlns:wfs="http://www.opengis.net/wfs/2.0"; 
xmlns:fes="http://www.opengis.net/fes/2.0";
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://www.opengis.net/gml/3.2 
http://schemas.opengis.net/gml/3.2.1/gml.xsd http://www.opengis.net/wfs/2.0

http://schemas.opengis.net/wfs/2.0/wfs.xsd";>

  <wfs:Query typeNames="gsml:GeologicUnit">
   <fes:Filter>

            <fes:BBOX>
            <fes:ValueReference>
                              
gsml:occurrence/gsml:MappedFeature/gsml:shape</fes:ValueReference>

                        <gml:Envelope>
                                <gml:lowerCorner>-100 -100</gml:lowerCorner>
                                <gml:upperCorner>3000 3000</gml:upperCorner>
                        </gml:Envelope>
           </fes:BBOX>

      </fes:Filter>
  </wfs:Query>
  </wfs:GetFeature>

-----------------------------
WFS 1.1

<wfs:GetFeature service="WFS" version="1.1.0"
  xmlns:gsml="urn:cgi:xmlns:CGI:GeoSciML:2.0"
  xmlns:wfs="http://www.opengis.net/wfs";
  xmlns:ogc="http://www.opengis.net/ogc";
  xmlns:gml="http://www.opengis.net/gml";>
  <wfs:Query typeName="gsml:GeologicUnit">
        <ogc:Filter>
                <ogc:Intersects>
                        
<ogc:PropertyName>gsml:occurrence/gsml:MappedFeature/gsml:shape</ogc:PropertyName>
                        <gml:Envelope>
                                <gml:lowerCorner>143.49 -39</gml:lowerCorner>
                                <gml:upperCorner>143.50 -38</gml:upperCorner>
                        </gml:Envelope>
                </ogc:Intersects>
        </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>



From: Stefano Costa [mailto:[email protected]]
Sent: Monday, September 14, 2015 3:39 PM
To: Yin, Wentao (IS) (Contr)
Cc: geoserver-users
Subject: Re: EXT :Re: [Geoserver-users] BBOX filter on chained features

Hi Wen,
please stay on the ML.

Your mapping looks a bit strange (at least to me):

1) You're mapping a geometry (aixm:Surface) as a feature

2) You're mapping the horizontalProjection property as a multi-valued property 
(<isMultiple>true</isMultiple>), but it's not

3) I was expecting a foreign key column in the GPS table, pointing to the G 
table: where is it? Is it true that g.id<http://g.id> = gps.id<http://gps.id>, 
as your mapping suggests? So gps.id<http://gps.id> is both primary key of the 
gps table and foreing key referencing g.id<http://g.id>?

4) What type are the geometries stored in gps.longlat? The name of the column 
suggests you have points in there, but you're mapping it to a gml:LinearRing

5) This 
thread<http://osgeo-org.1560.x6.nabble.com/App-schema-How-to-map-Oracle-Geometry-into-GML-td4984781.html>
 seems to confirm my doubts about types extending the base GML types (e.g. 
aixm:SurfaceType, which extends gml:SurfaceType): GeoServer uses statically 
defined Java bindings for all geometry types, so it is not comfortable with 
user-defined geometry types


On Mon, Sep 14, 2015 at 2:46 PM, Yin, Wentao (IS) (Contr) 
<[email protected]<mailto:[email protected]>> wrote:
Thanks, Stefano,
I can do BBOX query on surface if I make it a feature, but always got the error 
when query on it as a nested feature.
 ….






------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to