[mapserver-users] WMS works, WFS doesn't

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Wed Sep 26 05:48:46 PDT 2012


I though the ows_enable... metadata was a 6.x addition and you're at 5.6.5. I thought you needed "DUMP TRUE" in the layer definition to allow WFS feature export. Steve
________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of basvmrs [bas at cipix.nl]
Sent: Wednesday, September 26, 2012 7:33 AM
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] WMS works, WFS doesn't

cgi-mapserver:
  Installed: 5.6.5-2+squeeze2

Mapfile:
MAP
  NAME "WFS_server"
  STATUS ON
  SIZE 400 300
  EXTENT -180 -90 180 90
  UNITS DD
  SHAPEPATH "../data"
  IMAGECOLOR 255 255 255


  #
  # Start of web interface definition
  #
  WEB
    METADATA
      "wfs_title"          "WFS Demo Server for MapServer" ## REQUIRED
      "wfs_onlineresource" "http://demo.mapserver.org/cgi-bin/wfs?" ##
Recommended
      "wfs_srs"            "EPSG:4326 EPSG:4269 EPSG:3978 EPSG:3857" ##
Recommended
      "wfs_abstract"       "This text describes my WFS service." ##
Recommended
      "wfs_enable_request" "*"  # necessary
    END
  END

  PROJECTION
    "init=epsg:4326"
  END

  #
  # Start of layer definitions
  #

  ##################
  # World Continents
  ##################
  LAYER
    NAME "continents"
    METADATA
      "wfs_title"         "World continents" ##REQUIRED
      "wfs_srs"           "EPSG:4326" ## REQUIRED
      "gml_include_items" "all" ## Optional (serves all attributes for
layer)
      "gml_featureid"     "ID" ## REQUIRED
      "wfs_enable_request" "*"
    END
    TEMPLATE "./object.xml"
    TYPE POLYGON
    STATUS ON
    DATA 'countries_area.shp'
    PROJECTION
      "init=epsg:4326"
    END
    CLASS
      NAME 'World Continents'
      STYLE
        COLOR 255 128 128
        OUTLINECOLOR 96 96 96
      END
    END
  END #layer

END #mapfile



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/WMS-works-WFS-doesn-t-tp5004603p5004617.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list