ListStoredQueries

ListStoredQueries 操作 (WFS 2.0.0 および 2.0.2 のみ) は、サーバーで使用可能なストアド クエリの全一覧を示します。返される各ストアド クエリに対し、ID、タイトル、returnFeaturetype のリストが示されます。現時点では GetFeatureById のみがサポートされています。

GET リクエスト

GET リクエストには以下の要素が含まれます。

入力 必須 説明
SERVICE=WFS はい WFS に固定されます。
REQUEST=ListStoredQueries はい ListStoredQueries に設定されます。
VERSION はい サポートされる Web Feature Service 規格のバージョン (この操作の場合は、2.0.0 または 2.0.2)。

v2.0.0 の場合の例:

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

POST リクエスト

v2.0.0 の場合の例:
<wfs:ListStoredQueries service='WFS'
		version='2.0.0'
		xmlns:wfs='http://www.opengis.net/wfs/2.0'/>

レスポンスの例 (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>

レスポンスの例 (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>