PHP/MapScript 3.関数

現在実装されている関数一覧

  • 定数名およびクラスメンバ名は、PHPでは大文字・小文字を区別します。
  • いくつかのMapScriptの関数(ms_newMapObj()、drawMap() などのバックエンドにあるファイルにアクセスするすべての関数)は、PHPの作業ディレクトリ(Current Working Directory:CWD)に影響します。これはいずれフィックスされる予定ですが、それまではこの点に注意する必要があります。

connoteastring ms_GetVersion()

MapServerのバージョンとオプションを文字列で返します。この文字列を解析すると、どのモジュールがコンパイルされているかなどがわかります。

connoteaarray ms_TokenizeMap(string map_file_name)

MapServerのパーサーを使ってマップファイルを事前解析し、マップファイルのそれぞれのトークンを1要素とした配列を返します。文字列、論理式、正規表現、コメントが個別のトークンとして返ります。

connoteaarray ms_TokenizeMap(string map_file_name)

MapServerのパーサーを使ってマップファイルを事前解析し、マップファイルのそれぞれのトークンを1要素とした配列を返します。文字列、論理式、正規表現、コメントが個別のトークンとして返ります。

下記のms_ioxxx関数はwxsサービスに関する関数です。
詳しい情報は http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/view

connoteavoid ms_ioinstallstdouttobuffer()

Installs a mapserver IO handler directing future stdout output to a memory buffer.

connoteavoid ms_ioinstallstdinfrombuffer()

Installs a mapserver IO handler directing future stdin reading (ie. post request capture) to come from a buffer.

connoteavoid ms_iogetstdoutbufferstring()

Fetch the current stdout buffer contents as a string. This method does not clear the buffer.

connoteaint ms_iogetStdoutBufferBytes()

Writes the current buffer to stdout. The PHP header() function should be used to set the documents's content-type prior to calling the function. Returns the number of bytes written if output is sent to stdout.

connoteavoid ms_ioresethandlers()

Resets the default stdin and stdout handlers in place of "buffer" based handlers.

connoteavoid ms_iostripstdoutbuffercontenttype()

Strip the Content-type header off the stdout buffer if it has one, and if a content type is found it is return. Otherwise return false.

Add a new comment
page_revision: 6, last_edited: 1207893630|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License