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

mapscript.msIO_resetHandlers

mapscript.msIO_resetHandlers メソッド

説明

stdin とstdoutをリセットする

public static void msIO_resetHandlers();
Public Shared Sub msIO_resetHandlers()

サンプル

コード
Dim _map As 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")
_owsRequest.setParameter("LAYERS", "oldcity")
_owsRequest.setParameter("FORMAT", "image/png")
_owsRequest.setParameter("SRS", "EPSG:4326")
_owsRequest.setParameter("BBOX", "139.686375,35.619455,139.833112,35.739396")
_owsRequest.setParameter("WIDTH", "256")
_owsRequest.setParameter("HEIGHT", "256")
mapscript.msIO_installStdoutToBuffer()
_map.OWSDispatch(_owsRequest)
Debug.WriteLine(mapscript.msIO_getStdoutBufferBytes.Length.ToString)

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

参照

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

Last modified:2007/02/20 13:49:09
Keyword(s):
References:[mapscript メンバ]