[ms4w-users] wms and wfs in one mapfile?

Buchholz, Robert Robert.Buchholz at LUA.Brandenburg.de
Thu Dec 6 09:41:42 EST 2007


Hello List,

maybe i have a missunderstanding, -off course a lack of experiance. Here is my question:
-can I use WMS and WFS in one mapfile?
-or schould I decide at once to offer WMS or WFS?
>From http://www.opengeospatial.org/resource/products/implementing I find that UMN can handle WMS and WFS. But how can I use them in one application?
WMS gives the image and 
WFS give the polygon geometry and its data

My mapfile 
...
WEB
    IMAGEPATH "/ms4w/tmp/ms_tmp/"
    IMAGEURL "/ms_tmp/"
      METADATA
         "original_projection" "init=epsg:25833"
        "wms_title" "wms_rob"
        "wms_onlineresource" "http://localhost:8080/cgi-bin/mapserv?"
        "wms_srs" "EPSG:25833"
        "wfs_title" "wfs_rob"
        "wfs_onlineresource" "http://localhost:8080/cgi-bin/mapserv?"
        "wfs_srs" "EPSG:25833"
      END
    QUERYFORMAT text/html
  END
...
LAYER
	GROUP "WMS"
		CONNECTION "server/wfsconnector/...?"
 		   CONNECTIONTYPE WFS
   		   METADATA
			...
		  END
...
END
...
LAYER
    GROUP "WFS"
    CONNECTION "server/wfsconnector/...?"
    CONNECTIONTYPE WFS
      METADATA
        "wfs_onlineresource" "http://server/wfsconnector/...?"
        "wfs_version"  "1.0.0"
        "wfs_title" "xyz"
        "gml_featureid" "table column name"
        "GML_INCLUDE_ITEMS" "all"       
      END
    NAME MY_WFS
    DUMP TRUE
        CLASS
            Name "MY_WFS"
            Style
                COLOR 200 255 000
                OUTLINECOLOR 120 120 120
            END
            TEMPLATE "ttt_query.html"
        END
    STATUS OFF
    TYPE POLYGON 
  END
...

Does the WEB-METADATA makes sence?
The WFS basic Requests are working via Browser.
Using without WFS it works (WMS without GetFeatureInfo)!

Thanks in advance for your help,
Robert

-----------------------------------------
Robert Buchholz
Sachbearbeiter (Trainee)
Referat GIS-Zentrale
Landesumweltamt Brandenburg
Tel.: (033201)-442-127
Mail: Robert.Buchholz at LUA.Brandenburg.de 
Internet: http://www.brandenburg.de/lua
Kein Zugang für elektronisch signierte sowie für verschlüsselte elektronische Daten.
-----------------------------------------



More information about the ms4w-users mailing list