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

MapScript.Ja - mapObj.save Diff

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

!!mapObj.save メソッド
!!!説明
現在の設定のマップファイルをディスクに保存する
public int save(
    string filename
);

Public Function save(ByVal filename As String) As Integer
!!!サンプル
!!!!コード
Dim _map As New mapObj("")
Dim _layer As New layerObj(_map)

_map.save("c:\temp\bugnad.map")

!!!!マップファイル
""何の設定もしていない状態(デフォルト値)のマップファイル
MAP
  EXTENT -1 -1 -1 -1
  IMAGECOLOR 255 255 255
  IMAGETYPE gif
  SIZE -1 -1
  STATUS ON
  UNITS METERS
  NAME "MS"

  OUTPUTFORMAT
    NAME "gif"
    MIMETYPE "image/gif"
    DRIVER "GD/GIF"
    EXTENSION "gif"
    IMAGEMODE "PC256"
    TRANSPARENT FALSE
  END

  LEGEND
    IMAGECOLOR 255 255 255
    KEYSIZE 20 10
    KEYSPACING 5 5
    LABEL
      SIZE MEDIUM
      TYPE BITMAP
      BUFFER 0
      COLOR 0 0 0
      FORCE FALSE
      MINDISTANCE -1
      MINFEATURESIZE -1
      OFFSET 0 0
      PARTIALS TRUE
      POSITION CC
    END
    POSITION LL
    STATUS OFF
  END

  QUERYMAP
    COLOR 255 255 0
    SIZE -1 -1
    STATUS OFF
    STYLE HILITE
  END

  SCALEBAR
    COLOR 0 0 0
    IMAGECOLOR 255 255 255
    INTERVALS 4
    LABEL
      SIZE MEDIUM
      TYPE BITMAP
      BUFFER 0
      COLOR 0 0 0
      FORCE FALSE
      MINDISTANCE -1
      MINFEATURESIZE -1
      OFFSET 0 0
      PARTIALS TRUE
    END
    POSITION LL
    SIZE 200 3
    STATUS OFF
    STYLE 0
    UNITS MILES
  END

  WEB
    IMAGEPATH ""
    IMAGEURL ""
      METADATA
      END
    QUERYFORMAT text/html
    LEGENDFORMAT text/html
    BROWSEFORMAT text/html
  END

  LAYER
      METADATA
      END
    NAME "(null)"
    SIZEUNITS PIXELS
    STATUS OFF
    TOLERANCEUNITS PIXELS
    UNITS METERS
    CLASS
      METADATA
      END
      STYLE
        ANGLE 360
        SYMBOL 0
      END
    END
  END

  LAYER
      METADATA
      END
    NAME "(null)"
    SIZEUNITS PIXELS
    STATUS OFF
    TOLERANCEUNITS PIXELS
    UNITS METERS
  END

END

!!!参照

[[mapObj メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]