답변:
resultType 매개 변수를 "hits"로 설정할 수 있으며 SQL의 count () 함수와 유사한 쿼리의 기능 수를 얻게됩니다.
HTTP Get 요청 예 :
http://localhost:8080/geoserver/wfs?request=GetFeature&typeName=topp:states&version=1.1.0&resultType=hits
필터가있는 HTTP Post 요청 예 :
<wfs:GetFeature service="WFS" version="1.1.0"
resultType="hits"
xmlns:topp="http://www.openplans.org/topp"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd">
<wfs:Query typeName="topp:states">
<ogc:Filter>
<ogc:FeatureId fid="states.3"/>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>