WFS request no longer returns any results after updating to Mapserver v4.10

Ryan Ollerenshaw ryanollerenshaw at GMAIL.COM
Tue Nov 13 10:50:04 PST 2007


I have updated my Mapserver to version 4.10 and now when i make a WFS
request no results are returned.  I am using the same mapfile and
database i was using with 4.8.  Has anyone else come across this?

WFS request
http://povmars2/cgi-bin/mapserv?map=../html/html_mars/wfs_service.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=mro&

Results (notice no featureMember> are displayed):
<wfs:FeatureCollection xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd
http://mapserver.gis.umn.edu/mapserver
http://povmars2/cgi-bin/mapserv?map=../html/html_mars/wfs_service.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=mro&OUTPUTFORMAT=XMLSCHEMA">
<gml:boundedBy>
gml:Box srsName="EPSG:4326">
<gml:coordinates>-177.727811,-89.261382 360.000000,89.486305</gml:coordinates>
</gml:Box>
</gml:boundedBy>
</wfs:FeatureCollection>

Mapfile:
MAP
  IMAGETYPE PNG
  EXTENT -180 -90 180 90
  SIZE 600 500
  SHAPEPATH "../mars_data/"

  IMAGECOLOR 255 255 255

  WEB
    IMAGEPATH "/tmp/ms_tmp/"
    IMAGEURL "/ms_tmp/"
    METADATA
     "wfs_title" "msCross WFS Server" ## REQUIRED
     "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv?" ## Recommended
     "wfs_srs" "EPSG:4326" ## Recommended
    END
  END

  PROJECTION
    "init=epsg:4326"
  END


LAYER
  NAME "mro"
  STATUS off
  TYPE POLYGON
  PROJECTION
    "init=epsg:4326"
  END
  DUMP TRUE
  METADATA
   wfs_title "MRO Coverage" ## REQUIRED
   wfs_srs "EPSG:4326"
   wfs_featureid "gid"
   wfs_onlineresource
"http://povmars2/cgi-bin/mapserv?map=../html/html_mars/wfs_service.map&"
   #when using mscross layers with no values can not be used or the
entire layer will not display
   gml_include_items "team_id,minlat,minlon" ## Optional (serves all
attributes for layer)
  END
  CONNECTIONTYPE POSTGIS
  CONNECTION "host=localhost dbname=mars user=postgres"
  DATA "the_geom FROM mro_hirise"
  #FILTER "team_id = 'PSP_001876_1850_RED'"
   CLASS
    NAME "mro"
    STYLE
      COLOR 200 255 0
      OUTLINECOLOR 120 120 120
    END
  END
END  # layer




END # of map file



More information about the MapServer-users mailing list