現在実装されている関数一覧
- 定数名およびクラスメンバ名は、PHPでは大文字・小文字を区別します。
- いくつかのMapScriptの関数(ms_newMapObj()、drawMap() などのバックエンドにあるファイルにアクセスするすべての関数)は、PHPの作業ディレクトリ(Current Working Directory:CWD)に影響します。これはいずれフィックスされる予定ですが、それまではこの点に注意する必要があります。
string ms_GetVersion()
MapServerのバージョンとオプションを文字列で返します。この文字列を解析すると、どのモジュールがコンパイルされているかなどがわかります。
array ms_TokenizeMap(string map_file_name)
MapServerのパーサーを使ってマップファイルを事前解析し、マップファイルのそれぞれのトークンを1要素とした配列を返します。文字列、論理式、正規表現、コメントが個別のトークンとして返ります。
array ms_TokenizeMap(string map_file_name)
MapServerのパーサーを使ってマップファイルを事前解析し、マップファイルのそれぞれのトークンを1要素とした配列を返します。文字列、論理式、正規表現、コメントが個別のトークンとして返ります。
下記のms_ioxxx関数はwxsサービスに関する関数です。
詳しい情報は http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/view
void ms_ioinstallstdouttobuffer()
Installs a mapserver IO handler directing future stdout output to a memory buffer.
void ms_ioinstallstdinfrombuffer()
Installs a mapserver IO handler directing future stdin reading (ie. post request capture) to come from a buffer.
void ms_iogetstdoutbufferstring()
Fetch the current stdout buffer contents as a string. This method does not clear the buffer.
int 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.
void ms_ioresethandlers()
Resets the default stdin and stdout handlers in place of "buffer" based handlers.
void 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.






