Create  Edit  Diff  FrontPage  Index  Search  Changes  History  Source  RSS  wikifarm  Login

layerObj.executeWFSGetFeature

layerObj.executeWFSGetFeature メソッド

説明

WFSレイヤーに対するGetFeatureコマンドを送り、GMLファイルの名前を返す。

public string executeWFSGetFeature(
   layerObj layer
);
Public Function executeWFSGetFeature(ByVal layer As layerObj) As String

サンプル

コード
Dim _map As New mapObj("")
Dim _layer As New layerObj(_map)
Dim intRet As Integer

_layer.name = "WFSWORLD"
_layer.status = mapscript.MS_TRUE
_layer.type = MS_LAYER_TYPE.MS_LAYER_POLYGON
_layer.connectiontype = MS_CONNECTION_TYPE.MS_WFS
_layer.connection = "http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/ms/wfs.map&"
intRet = _layer.metadata.set("wfs_service", "WFS")
intRet = _layer.metadata.set("wfs_typename", "oldcity")
intRet = _layer.metadata.set("wfs_version", "1.0.0")
intRet = _layer.metadata.set("wfs_request_method", "GET")
intRet = _layer.metadata.set("wfs_connectiontimeout", "60")
'intRet = _layer.metadata.set("wfs_maxfeatures", "1")

strRet = _layer.executeWFSGetFeature(_layer2)
Debug.WriteLine(strRet)
→結果 c:\temp\5a0bf4cfb0b32fb49a7f5964769c4995.tmp.gml
マップファイル
 LAYER
   CONNECTION "http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/ms/wfs.map&"
   CONNECTIONTYPE WFS
     METADATA
       "wfs_request_method"	"GET"
       "wfs_typename"	"oldcity"
       "wfs_service"	"WFS"
       "wfs_connectiontimeout"	"60"
       "wfs_version"	"1.0.0"
     END
   NAME "WFSWORLD"
   SIZEUNITS PIXELS
   STATUS ON
   TOLERANCEUNITS PIXELS
   TYPE POLYGON
   UNITS METERS
   CLASS
     METADATA
     END
     STYLE
       ANGLE 360
       COLOR 200 200 200
       OUTLINECOLOR 100 100 100
       SYMBOL 0
     END
   END
 END

参照

layerObj メンバ | (global) 名前空間

Last modified:2007/02/15 14:05:54
Keyword(s):
References:[layerObj メンバ]