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

basvmrs bas at cipix.nl
Wed Sep 26 05:32:51 PDT 2012


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-tp5004603p5004616.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list