MapScript.Ja - OWSRequest.getValueByName Diff
- Added parts are displayed like this.
- Deleted parts are displayed
like this.
!!OWSRequest.getValueByName メソッド
!!!説明
public string getValueByName(
string name
);
Public Function getValueByName(ByVal name As String) As String
!!!サンプル
!!!!コード
Dim _map As mapObj = New mapObj("")
Dim _owsRequest As New OWSRequest
mapscript.msIO_resetHandlers()
_map.setMetaData("ows_onlineresource", "http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/ms/ecw.map?")
_owsRequest.setParameter("SERVICE", "WMS")
_owsRequest.setParameter("VERSION", "1.1.1")
_owsRequest.setParameter("REQUEST", "Getcapabilities")
Debug.WriteLine(_owsRequest.getValueByName(_owsRequest.getName(0)))
→結果 WMS
!!!!マップファイル
WEB
IMAGEPATH "c:\temp\"
IMAGEURL "/tmp"
METADATA
"ows_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/ms/ecw.map?"
END
QUERYFORMAT text/html
LEGENDFORMAT text/html
BROWSEFORMAT text/html
END
!!!参照
[[OWSRequest メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]
!!!説明
public string getValueByName(
string name
);
Public Function getValueByName(ByVal name As String) As String
!!!サンプル
!!!!コード
Dim _map As mapObj = New mapObj("")
Dim _owsRequest As New OWSRequest
mapscript.msIO_resetHandlers()
_map.setMetaData("ows_onlineresource", "http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/ms/ecw.map?")
_owsRequest.setParameter("SERVICE", "WMS")
_owsRequest.setParameter("VERSION", "1.1.1")
_owsRequest.setParameter("REQUEST", "Getcapabilities")
Debug.WriteLine(_owsRequest.getValueByName(_owsRequest.getName(0)))
→結果 WMS
!!!!マップファイル
WEB
IMAGEPATH "c:\temp\"
IMAGEURL "/tmp"
METADATA
"ows_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/ms/ecw.map?"
END
QUERYFORMAT text/html
LEGENDFORMAT text/html
BROWSEFORMAT text/html
END
!!!参照
[[OWSRequest メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]