Hi,

I have an application schema in which I am attempting feature chaining between 
geo:PositionTimeSeries and multiple child instances of geo:PositionTimeSlice. 
The workspace is hosted at this repository: 
https://github.com/alphabetsoup/eGeodesyGeoserverWorkspace

In the dbmigrate/views/views.sql I am setting the IDs of the position time 
series and slices as positions_simple and coordinateinstances_simple 
respectively. When I set positions_simple:gid (the column that populates gml:id 
for geo:PositionTimeSeries) to be concat('position_',mc.mark_coord_id) and the 
same for coordinateinstances:pid (the feature link column) feature chaining 
works but on a one-to-one basis. This is because mc.mark_coord_id is the 
primary key for time slices. If I change this very same FEATURE_LINK 
relationship to set
positions_simple:gid=coordinateinstances_simple:pid=concat('position_',mc.mark_id)
 instead, the feature link doesn't render in the WFS 1.1.0 output. I know it is 
making the correct link because when I run a query on the validTime property of 
geo:PositionTimeSlice via the following query it correctly selects the 
geo:PositionTimeSeries but does not populate any elements under the geo:history 
tag.

<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature service="WFS"
                version="1.1.0"
                outputFormat="gml32"
                xmlns:geo="urn:xml-gov-au:icsm:egeodesy:0.2"
                xmlns:gml="http://www.opengis.net/gml/3.2";
                xmlns:wfs="http://www.opengis.net/wfs";
                xmlns:ogc="http://www.opengis.net/ogc";
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                xmlns:xlink="http://www.w3.org/1999/xlink";
                xsi:schemaLocation="http://www.opengis.net/wfs
                                    
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";>
   <wfs:Query typeName="geo:PositionTimeSeries" aliases="p">
      <ogc:Filter>
        <And>
          <ogc:PropertyIsGreaterThanOrEqualTo>
            
<ogc:PropertyName>geo:history/geo:PositionTimeSlice/gml:validTime/gml:TimeInstant/gml:timePosition</ogc:PropertyName>
            <ogc:Function name="dateParse">
              <ogc:Literal>yyyy-MM-dd</ogc:Literal>
              <ogc:Literal>2016-01-03</ogc:Literal>
            </ogc:Function>
          </ogc:PropertyIsGreaterThanOrEqualTo>
        </And>
      </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

Is this a bug???

Yours in earnest,

Laurence Davies
____________________
Research Assistant in eGeodesy
CRC-SI, UNSW
Desk phone: (03) 8636 2373
Mobile: 0427 519 289
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to