ListStoredQueries
The ListStoredQueries operation (WFS 2.0.0 and 2.0.2 only) lists all the stored queries available at a server. For each stored query returned, the ID, title and a list of returnFeaturetype are provided. Only GetFeatureById is currently supported.
GET Request
The GET request contains:
Input | Required | Description |
---|---|---|
SERVICE=WFS |
Yes | Fixed to WFS. |
REQUEST=ListStoredQueries |
Yes | Set to ListStoredQueries. |
VERSION |
Yes | The supported version of the Web Feature Service standard (for this operation, either 2.0.0 or 2.0.2). |
For example, for v2.0.0:
http://server:port/rest/Spatial/WFS?SERVICE=WFS&REQUEST=ListStoredQueries&VERSION=2.0.0
POST Request
For example, for v2.0.0:<wfs:ListStoredQueries service='WFS' version='2.0.0' xmlns:wfs='http://www.opengis.net/wfs/2.0'/>
Sample Response (v2.0.0)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ListStoredQueriesResponse xmlns="http://www.opengis.net/wfs/2.0">
<StoredQuery <b>id="urn:ogc:def:query:OGC-WFS::GetFeatureById"</b>
<Title>Get Feature By Identifier</Title>
<ReturnFeatureType xmlns:miwfs="http://www.mapinfo.com/wfs">miwfs:World</ReturnFeatureType>
<ReturnFeatureType xmlns:miwfs="http://www.mapinfo.com/wfs">miwfs:WorldCap</ReturnFeatureType>
<ReturnFeatureType xmlns:miwfs="http://www.mapinfo.com/wfs">miwfs:USA</ReturnFeatureType>
<ReturnFeatureType xmlns:miwfs="http://www.mapinfo.com/wfs">miwfs:USACap</ReturnFeatureType>
</StoredQuery>
</ListStoredQueriesResponse>
Sample Response (v2.0.2)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ListStoredQueriesResponse xmlns="http://www.opengis.net/wfs/2.0">
<StoredQuery id="http://www.opengis.net/def/query/OGC-WFS/0/GetFeatureById>
<Title>Get Feature By Identifier</Title>
<ReturnFeatureType xmlns:miwfs="http://www.mapinfo.com/wfs">miwfs:World</ReturnFeatureType>
<ReturnFeatureType xmlns:miwfs="http://www.mapinfo.com/wfs">miwfs:WorldCap</ReturnFeatureType>
<ReturnFeatureType xmlns:miwfs="http://www.mapinfo.com/wfs">miwfs:USA</ReturnFeatureType>
<ReturnFeatureType xmlns:miwfs="http://www.mapinfo.com/wfs">miwfs:USACap</ReturnFeatureType>
</StoredQuery>
</ListStoredQueriesResponse>