[Geoserver-users] How to create/execute "urn:ogc:def:query:OGC-WFS::GetFeatureById" StoredQuery ?

Hi,

I try to create and execute the stored query “urn:ogc:def:query:OGC-WFS::GetFeatureById”.

The following creation fails :

<wfs:CreateStoredQuery service=“WFS” version=“2.0.0”
xmlns=“http://www.opengis.net/wfs/2.0
xmlns:wfs=“http://www.opengis.net/wfs/2.0
xmlns:gml=“http://www.opengis.net/gml/3.2
xmlns:fes=“http://www.opengis.net/fes/2.0
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance
xmlns:xsd=“http://www.w3.org/2001/XMLSchema
xsi:schemaLocation=“http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd” xmlns:ns1=“http://www.opengis.net/ows/1.1”>
<wfs:StoredQueryDefinition id=“urn:ogc:def:query:OGC-WFS::GetFeatureById”>

Get feature by identifier

It fails because there is not feature type specified in the query.

But I can’t create a parameter for the feature type, because it’s not compliant WFS2.0 : the urn:ogc:def:query:OGC-WFS::GetFeatureById stored query must have only one parameter (the “id” parameter).

So, how to do ?

Best regards,

Rudy.