GeoServer
  1. GeoServer
  2. GEOS-4245

GML3 outputformat from WFS 1.0.0 returns zero for the number of features

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1-beta1, 2.7-RC1
    • Fix Version/s: None
    • Component/s: PostGIS, WFS
    • Labels:
      None
    • Environment:
      Linux/Tomcat 6
    • Number of attachments :
      0

      Description

      The response to a WFS query on a sql view returns zero for the number of features

      /geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=myns:test_sql_view&maxFeatures=50&outputFormat=GML2

      returns

      <wfs:FeatureCollection numberOfFeatures="0" ...>
      <gml:featureMembers>
      <gml:boundedBy/>
      <myns:test_sql_view gml:id="test_sql_view.fid-7b81134_12ca359e616_db5"/>
      <myns:test_sql_view gml:id="test_sql_view.fid-7b81134_12ca359e616_db6"/>
      ..
      <gml:featureMembers>
      </wfs:FeatureCollection>

        Activity

        Hide
        Charles Galpin added a comment -

        Sorry that was GML3

        Show
        Charles Galpin added a comment - Sorry that was GML3
        Hide
        Jukka Rahkonen added a comment - - edited

        The issue is real but the summary was wrong in suggesting that it has something to do with SQL view layers. In fact this seems to happen always when using GML3 outputformat in WFS 1.0.0 service.

        http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=getfeature&typename=topp:states&outputformat=GML3

        GML which holds all the data starts as

        <wfs:FeatureCollection numberOfFeatures="0" timeStamp="2015-03-04T08:54:42.811Z"

        Show
        Jukka Rahkonen added a comment - - edited The issue is real but the summary was wrong in suggesting that it has something to do with SQL view layers. In fact this seems to happen always when using GML3 outputformat in WFS 1.0.0 service. http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=getfeature&typename=topp:states&outputformat=GML3 GML which holds all the data starts as <wfs:FeatureCollection numberOfFeatures="0" timeStamp="2015-03-04T08:54:42.811Z"

          People

          • Assignee:
            Andrea Aime
            Reporter:
            Charles Galpin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: