Uploaded image for project: 'GeoTools'
  1. GEOT-5222

WFS-NG Count Not using resultType=hits

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 14-RC1
    • Fix Version/s: 16-M0
    • Component/s: wfs-ng
    • Labels:
      None
    • Environment:

      Mac OSX Yosemite, Java 8

      Description

      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()

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                NielsCharlier Niels Charlier
                Reporter:
                sbortman scott bortman
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: