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

MapScript.Ja - layerObj.getFeature Diff

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

!!layerObj.getFeature メソッド
!!!説明
Shapefileの中で、引数で与えられた地物を取得する
public shapeObj getFeature(
    int shapeindex,
    int tileindex
);

Public Function getFeature(ByVal shapeindex As Integer, ByVal tileindex As Integer) As shapeObj

!!!サンプル
!!!!コード
Dim _map As New mapObj("")
Dim _layer As New layerObj(_map)
Dim _shape As New shapeObj(MS_LAYER_TYPE.MS_LAYER_POLYGON)

intRet = _layer.open()
_shape = _layer.getFeature(0, 0)
Debug.WriteLine(_shape.numlines.ToString)
_layer.close()

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