- 积分
- 13187
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-8-7
- 最后登录
- 1970-1-1
|
发表于 2013-7-31 14:11:35
|
显示全部楼层
MeteoInfo 发表于 2013-7-31 13:49
出错信息是什么?我不能凭空瞎猜呀!
对不起老师…刚刚学习的,还很不熟,就是照着老师的程序复制的…
出错是这样的 SystemError: Object reference not set to an instance of an object.
我的程序是这样的:
#---- 打开图层
bou1Layer = MapDataManage.OpenLayer(MapDir + "bou1_4l.shp")
#---- 创建MIApp类的对象
myApp = MIApp()
mapLayout = myApp.MapLayout
layoutMap = mapLayout.ActiveLayoutMap
mapFrame = layoutMap.MapFrame
mapView = mapFrame.MapView
#---- 添加图层
mapFrame.AddLayer(bou1Layer) 这一行出错! |
|