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

mapscript.msIO_stripStdoutBufferContentType

mapscript.msIO_stripStdoutBufferContentType メソッド

説明

stdoutのcontent typeを取得する

public static string msIO_stripStdoutBufferContentType();
Public Shared Function msIO_stripStdoutBufferContentType() As String

サンプル

コード
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_stripStdoutBufferContentType)

→結果 application/vnd.ogc.wms_xml
マップファイル
 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) 名前空間|http://wiki.fdiary.net/MapScriptJa]

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