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

MapScript.Ja - OWSRequest.NumParams Diff

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

!!OWSRequest.NumParams プロパティ
!!!説明
リクエストパラメータの数
public int NumParams {get;}

Public ReadOnly Property NumParams() As Integer
!!!サンプル
!!!!コード
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.NumParams.ToString

→結果 3
!!!!マップファイル
  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]]