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

MapScript.Ja - layerObj.connectiontype Diff

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

!!layerObj.connectiontype プロパティ
!!!説明
データベースへ接続するときの接続タイプ
!!!!Enum MS_CONNECTION_TYPE
MS_INLINE,MS_SHAPEFILE,MS_TILED_SHAPEFILE,MS_SDE,MS_OGR,
MS_POSTGIS,MS_WMS,MS_ORACLESPATIAL,MS_WFS,MS_GRATICULE,
MS_MYGIS,MS_RASTER
public MS_CONNECTION_TYPE connectiontype {get; set;}

Public Property connectiontype() As MS_CONNECTION_TYPE

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

_layer.classitem = "arcid"
_layer.connection = "dbname=routing user=postgres password=postgres host=localhost port=5432"
_layer.connectiontype = MS_CONNECTION_TYPE.MS_POSTGIS
_layer.data = "the_geom from wako"

!!!!マップファイル
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
!!!参照
[[layerObj メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]