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

MapScript.Ja - layerObj.queryByShape Diff

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

!!layerObj.queryByShape メソッド
!!!説明
ポリゴンであるシェイプに対する問い合わせを実行します
public int queryByShape(
    mapObj map,
    shapeObj shape
);

Public Function queryByShape(ByVal map As mapObj, ByVal shape As shapeObj) As Integer

!!!サンプル
!!!!コード
Dim _map As New mapObj("")
Dim _layer As New layerObj(_map)
Dim _pt1 As New pointObj(-125.948008, 46.735923, 0, 0)
Dim _pt2 As New pointObj(-125.948008, 49.859265, 0, 0)
Dim _pt3 As New pointObj(-121.150436, 49.859265, 0, 0)
Dim _pt4 As New pointObj(-121.150436, 46.735923, 0, 0)

  _layer.template = "template.html"
intRet = _line.add(_pt1)
intRet = _line.add(_pt2)
intRet = _line.add(_pt3)
intRet = _line.add(_pt4)
intRet = _line.add(_pt1)
intRet = _shape.add(_line)
intRet = _layer.queryByShape(_map, _shape)

!!!!マップファイル
影響なし
!!!参照
[[layerObj メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]