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">
<Title>Get feature by identifier</Title>
<wfs:Parameter name="ID" type="xsd:string" />
<wfs:QueryExpressionText
language="urn:ogc:def:queryLanguage:OGC-WFS::WFS_QueryExpression">
<wfs:Query>
<fes:Filter>
<fes:ResourceId rid="${ID}"/>
</fes:Filter>
</wfs:Query>
</wfs:QueryExpressionText>
</wfs:StoredQueryDefinition>
</wfs:CreateStoredQuery>
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.
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users