MapScript 4.20 rectObjクラス

4.20.1 rectObj 属性

connoteamaxx : float
connoteamaxy : float
connoteaminx : float
connoteaminy : float

4.20.2 rectObj メソッド

connoteanew rectObj( [ float minx=-1.0, float miny=-1.0, float maxx=-1.0, float maxy=-1.0, int imageunits=MS_FALSE ] ) : rectObj

新インスタンスを作成します。

connoteadraw( mapObj map, layerObj layer, imageObj img, int classindex, string text ) : int

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

connoteaproject( projectionObj proj_in, projectionObj proj_out ) : int

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

connoteatoPolygon() : shapeObj

ポリゴン(5頂点)に変換して返します。

connoteatoString() : string

文字列に変換して返します。例:

{ 'minx': %f , 'miny': %f , 'maxx': %f , 'maxy': %f }

                                                                                                                                                                               

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