MapScript 4.18 pointObj

pointObjはlineObjに所属しています。

+-------+ 1..*  0..1 +------+
| Point | <--------- | Line |
+-------+            +------+

4.18.1 pointObj 属性

connoteam : float

measureシェープファイルにのみ使用。他のタイプでは0。

connoteax : float

connoteay : float

connoteaz : float

3Dシェープファイルにのみ使用。他のタイプでは0。

4.18.2 pointObj メソッド

connoteanew pointObj( [ float x=0.0, float y=0.0, float z=0.0, float m=-2e38 ] ) : pointObj

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

connoteadistanceToPoint( pointObj point ) : float

2つのポイント間の距離を計算します。

connoteadistanceToSegment( pointObj point1, pointObj point2 ) : float

ポイントから、引数の2ポイントを使って引いたラインへの距離を計算します。

connoteadistanceToShape( shapeObj shape ) : float

ポイントとシェープの間の最短距離を計算します。

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

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

connoteaproject( projectionObj proj_in, projectionObj proj_out ) : int

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

connoteasetXY( float x, float y [, float m=2e-38 ] ) : int

X, Y座標値を設定します。MS_SUCCESS或いはMS_FAILUREを返します。
注:3つめの引数mは、measureシェープファイルにのみ使用されます。必須ではありません。

connoteasetXYZ( float x, float y, float z [, float m=-2e38 ] ) : int

X, Y,Z座標値を設定します。MS_SUCCESS或いはMS_FAILUREを返します。
注:4つめの引数mは、measureシェープファイルにのみ使用されます。必須ではありません。

connoteasetXYZM( float x, float y, float z, float m ) : int

X, Y,Z座標値を設定します。MS_SUCCESS或いはMS_FAILUREを返します。

connoteatoString() : string

文字列を返します。例:

{ 'x': %f , 'y': %f, 'z': %f }

connoteatoShape() : shapeObj

pointObjをshapeObjに変換して返します。

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