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

MapScript.Ja - layerObj.connection Diff

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

!!layerObj.connection プロパティ
!!!説明
データベースへ接続するときの接続文字列
public string connection {get; set;}

Public Property connection() As String

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

_layer.classitem = "length"
_layer.connectiontype = MS_CONNECTION_TYPE.MS_POSTGIS
_layer.connection = "dbname=tokyo user=postgres password=bugna host=localhost port=5432"

!!!!マップファイル
  LAYER
    CLASSITEM "length"
    CONNECTION "dbname=tokyo user=postgres password=postgres host=localhost port=5432"
    CONNECTIONTYPE POSTGIS
      METADATA
      END
    NAME "Tokyo"
    SIZEUNITS PIXELS
    STATUS OFF
    TOLERANCEUNITS PIXELS
    UNITS METERS
    CLASS
      METADATA
      END
      STYLE
        ANGLE 360
        SYMBOL 0
      END
    END
  END
!!!参照
[[layerObj メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]