[Geoserver-users] App-schema extension:stored queries for complex features

Hi,

I wonder is it possible to use wfs2 fes -filter and eventually have
storedQueries for app-schema complex feature?

I managed to use complex feature in ogc filter
<ogc:PropertyIsGreaterThan>
               
<ogc:PropertyName>sarv:contains/sarv:LocalitySummary/sarv:results</ogc:PropertyName>
                <ogc:Literal>0</ogc:Literal>
</ogc:PropertyIsGreaterThan>

But I have problems with wfs2-fes
<fes:Filter>
<fes:PropertyIsGreaterThan>
<fes:ValueReference>sarv:contains/sarv:LocalitySummary/sarv:results</fes:ValueReference>
<fes:Literal>0</fes:Literal>
</fes:PropertyIsGreaterThan>

when I try it in geoserver demos, I have message:
java.net.MalformedURLException: no protocol:
does it mean that it is constrain on the part of App-Schema extension or
just Demos does not support the protocol for wfs2? on the other hand just
general FeatureId query in wfs2 works!

Cheers!
Valentina

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/App-schema-extension-stored-queries-for-complex-features-tp5161219.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

-----Original Message-----
From: Valentina Sagris [mailto:valentina.sagris@…6506…]
Sent: 11 September 2014 05:59

I wonder is it possible to use wfs2 fes -filter and eventually have
storedQueries for app-schema complex feature?

Yes, you can see some demo queries by going to the demo requests page at http://ogc.bgs.ac.uk/digmap625k_gsml32_insp_gs, for example.

There is a description of how this service was set up at http://data.gov.uk/library/implementing-inspire-web-feature-service-geoserver.

I managed to use complex feature in ogc filter
<ogc:PropertyIsGreaterThan>

<ogc:PropertyName>sarv:contains/sarv:LocalitySummary/sarv:results</ogc:
PropertyName>
                <ogc:Literal>0</ogc:Literal>
</ogc:PropertyIsGreaterThan>

But I have problems with wfs2-fes
<fes:Filter>
<fes:PropertyIsGreaterThan>
<fes:ValueReference>sarv:contains/sarv:LocalitySummary/sarv:results</fe
s:ValueReference>
<fes:Literal>0</fes:Literal>
</fes:PropertyIsGreaterThan>

when I try it in geoserver demos, I have message:
java.net.MalformedURLException: no protocol:
does it mean that it is constrain on the part of App-Schema extension
or
just Demos does not support the protocol for wfs2? on the other hand
just
general FeatureId query in wfs2 works!

I can't immediately see any reason for your error but, on the general question of whether you should be able to use FES2 and WFS2 with app-schema the answer is yes. Also adding stored queries seems to work. Maybe looking at the cookbook above and example service will show whether there are any differences with your setup. By the way, which version of GeoServer are you using; our services are currently using v2.4.5.

Marcus Sen
British Geological Survey
Keyworth
Nottingham
NG12 5GG

Web: http://www.bgs.ac.uk

This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.