ListStoredQueries

L'opération ListStoredQueries (WFS 2.0.0 et 2.0.2 uniquement) répertorie toutes les requêtes stockées disponibles sur un serveur. Pour chaque requête stockée renvoyée, l’ID, le titre et une liste de returnFeaturetype sont fournis. Seul GetFeatureById est actuellement pris en charge.

Requête GET

La requête GET contient :

Input Obligatoire Description
SERVICE=WFS Oui Défini sur WFS.
REQUEST=ListStoredQueries Oui Défini sur ListStoredQueries.
VERSION Oui Version prise en charge de la norme Web Feature Service (pour cette opération, soit 2.0.0, soit 2.0.2).

Par exemple, pour v2.0.0 :

http://<server>:<port>/rest/Spatial/WFS?SERVICE=WFS&REQUEST=ListStoredQueries&VERSION=2.0.0

Requête POST

Par exemple, pour v2.0.0 :
<wfs:ListStoredQueries service='WFS'
		version='2.0.0'
		xmlns:wfs='http://www.opengis.net/wfs/2.0'/>

Exemple de réponse (v2.0.0)

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
	<ListStoredQueriesResponse xmlns="http://www.opengis.net/wfs/2.0">
		<StoredQuery id="urn:ogc:def:query:OGC-WFS::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>

Exemple de réponse (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>