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

layerObj.removeMetaData

layerObj.removeMetaData メソッド

説明

METADATAから指定したキーを取り除きます

public int removeMetaData(
   string name
);
Public Function removeMetaData(ByVal name As String) As Integer

サンプル

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

intRet = _layer.metadata.set("wms_name", "oldcity")
intRet = _layer.metadata.set("wms_srs", "EPSG:4326")
intRet = _layer.metadata.set("wms_server_version", "1.1.1")
intRet = _layer.metadata.set("wms_format", "image/png")

intRet = _layer.removeMetaData("wms_format")
マップファイル
 LAYER
   DATA "countries_simpl"
     METADATA
       "wms_srs"	"EPSG:4326"
       "wms_name"	"oldcity"
       "wms_server_version"	"1.1.1"
     END
   NAME "World"
   SIZEUNITS PIXELS
   STATUS DEFAULT
   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) 名前空間

Last modified:2007/02/15 14:21:56
Keyword(s):
References:[layerObj メンバ]