PHP/MapScript RectObjクラス

コンストラクタ:

RectObjは他のオブジェクトに組み込まれることがあります。また次のように新しく作成できます:

rectObj ms_newRectObj()

メンバ:

double minx
double miny
double maxx
double maxy

メソッド:

connoteaint set(string property_name, new_value)

オブジェクトのプロパティをnew_valueに設定します。エラーの場合 -1が返ります。

connoteavoid setextent(double minx, double miny, double maxx, double maxy)

矩形の範囲を設定します。

connoteaint draw(mapObj map, layerObj layer, imageObj img, int class_index, string text)

レイヤを使って個別の矩形を描きます。class_indexは、レイヤに定義されたクラスにもとづいて矩形を分類するために使われます。text文字列は、矩形にアノテーションをつけるために使われます。
MS_SUCCESSまたはMS_FAILUREが返ります。

connoteadouble fit(int width, int height)

指定したwidthとheightにフィットするよう矩形の大きさを調整します。

connoteaint project(projectionObj in, projectionObj out)

矩形を ”in” 投影(第1引数)から”out” 投影(第2引数)へ投影します。
MS_SUCCESSまたはMS_FAILUREが返ります。

connotea** void free()**

rectオブジェクトが使ったリソースを解放します。

                                                                                                                                                                                                                                                                

Add a new comment
Page tags: mapserver phpmapscript
page_revision: 3, last_edited: 1210512630|%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