WFS map file

N Zhou zhou_naijun at HOTMAIL.COM
Fri Nov 5 09:41:32 PST 2004


Hi,

I'm new to the WFS. I have a working WMS map file, and I followed the HOW To
instruction to modify the WMS map file to WFS. However, only the layer name
can be showed as WFS not the real layer map. Is this because of map
projection: the data are in a projection currently not supported in EPSG? Or
I have errors in the map file?

Thank you very much!

My map file is:

Map
  NAME "MyServices"
  STATUS ON
  EXTENT 177185 124886 891620 939320
  SIZE 400 400
  UNITS METERS

  #
  # Start of web interface definition
  #
  WEB
    MINSCALE 1
    MAXSCALE 10000000

    METADATA
      "wfs_title"  "DNRServices"
      "wfs_srs"  "EPSG:90000"
      "wfs_onlineresource"
"http://myhost/cgi-bin/mapserv?map=thismapfile.map"
    END
  END

  PROJECTION
    "init=epsg:90000"
  END

#
# Start of layer definitions
#
     LAYER
     NAME "water"
     STATUS ON
     DATA "hydppoly"
     TYPE  POLYGON
          CLASSITEM 'HYDNW92M_'
          MINSCALE 400000
          PROJECTION
            "init=epsg:90000"
     END
     DUMP TRUE
     METADATA
       "wfs_title"  "Open Water"
       "wfs_srs"  "EPSG:90000"
     END
     CLASS
        EXPRESSION /./
        STYLE
           COLOR -1 -1 -1
           OUTLINECOLOR 0 0 255
           SIZE 1
           SYMBOL 0
        END
     END
  END
END


N. Zhou



More information about the MapServer-users mailing list