Create  Edit  Diff  FrontPage  Index  Search  Changes  History  Source  RSS  wikifarm  Login

MapScript.Ja - rectObj.project Diff

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

!!rectObj.project メソッド
!!!説明
public int project(
    projectionObj projin,
    projectionObj projout
);

Public Function project(ByVal projin As projectionObj, ByVal projout As projectionObj) As Integer
!!!サンプル
!!!!コード
Dim _rect as New rectObj(-125.948008, 46.735923, -121.150436, 49.859265, Nothing)
Dim _proj1 As New projectionObj("init=epsg:4301")
Dim _proj2 As New projectionObj("init=epsg:4326")

Debug.WriteLine(_rect.toString)
_rect.project(_proj1, _proj2)
Debug.WriteLine(_rect.toString)

→結果
{ 'minx': -125.948008 , 'miny': 46.735923 , 'maxx': -121.150436 , 'maxy': 49.859265 }
{ 'minx': -125.948008 , 'miny': 46.73652023324479 , 'maxx': -121.150436 , 'maxy': 49.85985463296213 }
!!!!マップファイル
影響なし
!!!参照

[[rectObj メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]