|
When using WFS-NG via GeoScript Groovy SNAPSHOT build, it appears that the count method should use WFS GetFeature with resultType=hits. Instead, it seems to be just downloading the whole layer to do the count locally.
The old WFS seems to work w/o issue. Code used to test:
import geoscript.workspace.WFS
def wfsServer = "http://localhost/geoserver/wfs" def wfs = new WFS([protocol: 'get', timeout: 5000], "$ {wfsServer}
?service=WFS&version=1.1.0&request=GetCapabilities")
wfs?.layers?.sort { it.name }
?.each { println it.name }
println wfs['topp_states'].count() wfs?.close()
|