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

MapScript.Ja - layerObj.getResult Diff

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

!!layerObj.getResult メソッド
!!!説明
引数で与えられたインデックスに対する問い合わせた結果を返します。
public resultCacheMemberObj getResult(
    int i
);

Public Function getResult(ByVal i As Integer) As resultCacheMemberObj

!!!サンプル
!!!!コード
Dim _map As New mapObj("")
Dim _layer As New layerObj(_map)

_layer.template = "template.html"
intRet = _layer.queryByAttributes(_map, "NAME", "United States", 1)
Debug.WriteLine(_layer.getResult(0).shapeindex.ToString)

→結果 1753
!!!!マップファイル
  LAYER
    DATA "countries_simpl"
      METADATA
      END
    NAME "World"
    SIZEUNITS PIXELS
    STATUS ON
    TEMPLATE "template.html"
    TOLERANCEUNITS PIXELS
    TYPE POLYGON
    UNITS METERS
    CLASS
      METADATA
      END
      STYLE
        ANGLE 360
        COLOR 200 200 200
        OUTLINECOLOR 100 100 100
        SYMBOL 0
      END
    END
  END
!!!参照
[[layerObj メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]