<< Click to Display Table of Contents >>

 

SGDExportMap

 

 

開啟地圖匯出功能

SGDExportMap使用範例

import sgpy

# 取得目前地圖

sgd = sgpy.mapping.MapDocument("current")

# 取得data frame

df = sgd.activeDataFrame

#從檔案中仔入圖層,並加入data frame中

lyr = sgpy.mapping.Layer("D:/temp/Line2.shp")

sgpy.mapping.AddLayer(df, lyr,"AUTO_ARRANGE")

# 地圖更新 (將前面所做的設定,套用到地圖上)

sgpy.RefreshActiveView()

#開啟匯出地圖功能,使用者可自行操作匯出地圖

sgpy.SGDExportMap()

 


©2015 Supergeo Technologies Inc. All rights reserved.