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

layerObj.data

layerObj.data プロパティ

説明

レイヤーに与えるデータ。connectiontype に応じて設定する。

public string data {get; set;}
Public Property data() As String

サンプル

コード
Dim _map As New mapObj("")
Dim _layer As New layerObj(_map)

_layer.classitem = "arcid"
_layer.connection = "dbname=routing user=postgres password=bugna host=localhost port=5432"
_layer.connectiontype = MS_CONNECTION_TYPE.MS_POSTGIS
_layer.data = "the_geom from wako"
Dim _map As New mapObj("")
Dim _layer As New layerObj(_map)

_layer.data = "countries_simpl"
マップファイル
LAYER
   CLASSITEM "fileid"
   CONNECTION "dbname=routing user=postgres password=bugna host=localhost port=5432"
   CONNECTIONTYPE POSTGIS
   DATA "the_geom from wako"
     METADATA
     END
   NAME "Wako"
   PROJECTION
     "init=epsg:4326"
   END
   SIZEUNITS PIXELS
   STATUS ON
   TOLERANCEUNITS PIXELS
   TYPE POLYGON
   UNITS METERS
   CLASS
     NAME "fileid"
     METADATA
     END
     STYLE
       ANGLE 360
       COLOR 200 200 200
       OUTLINECOLOR 100 100 100
       SYMBOL 0
     END
   END
 END
 LAYER
   DATA "countries_simpl"
     METADATA
     END
   NAME "Wako"
   SIZEUNITS PIXELS
   STATUS ON
   TOLERANCEUNITS PIXELS
   TYPE POLYGON
   UNITS METERS
   CLASS
     NAME "arcid"
     METADATA
     END
     STYLE
       ANGLE 360
       COLOR 20 20 20
       OUTLINECOLOR 100 100 100
       SYMBOL 0
     END
   END
 END

参照

layerObj メンバ | (global) 名前空間

Last modified:2007/02/15 13:39:31
Keyword(s):
References:[layerObj メンバ]