📄 frmmain1.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{03ED3B1E-ED1B-4A2E-8FE3-D8D1A673F5D4}#5.2#0"; "SuperMap.ocx"
Begin VB.Form FrmMain
BorderStyle = 3 'Fixed Dialog
Caption = "叠加分析示范"
ClientHeight = 7035
ClientLeft = 45
ClientTop = 330
ClientWidth = 9210
Icon = "FrmMain1.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7035
ScaleWidth = 9210
StartUpPosition = 2 'CenterScreen
Begin SuperMapLib.SuperWorkspace SuperWorkspace1
Left = 6780
Top = 1200
_Version = 327682
_ExtentX = 847
_ExtentY = 847
_StockProps = 0
End
Begin SuperMapLib.SuperMap SuperMap1
Height = 3855
Left = 60
TabIndex = 12
Top = 480
Width = 4515
_Version = 327682
_ExtentX = 7964
_ExtentY = 6800
_StockProps = 160
End
Begin VB.CommandButton btnAttributeTable
Caption = "属性数据表"
Height = 375
Left = 8130
TabIndex = 7
Top = 30
Width = 1095
End
Begin VB.CommandButton btnAddCurrentWin
Caption = "添加到当前窗口"
Height = 375
Left = 5700
TabIndex = 6
Top = 30
Width = 1410
End
Begin VB.CommandButton btnNewMapWin
Caption = "新建地图窗口"
Height = 375
Left = 4350
TabIndex = 5
Top = 30
Width = 1350
End
Begin VB.CommandButton btnOverlay
Caption = "叠加分析"
Height = 375
Left = 7110
TabIndex = 4
Top = 30
Width = 1020
End
Begin VB.CommandButton btnPan
Caption = "平移"
Height = 375
Left = 30
TabIndex = 3
Top = 30
Width = 1080
End
Begin VB.CommandButton btnZoomFree
Caption = "自由缩放"
Height = 375
Left = 1110
TabIndex = 2
Top = 30
Width = 1080
End
Begin VB.CommandButton btnViewEntire
Caption = "全幅显示"
Height = 375
Left = 2190
TabIndex = 1
Top = 30
Width = 1080
End
Begin VB.CommandButton btnDelDataset
Caption = "删除数据集"
Height = 375
Left = 3270
TabIndex = 0
Top = 30
Width = 1080
End
Begin VB.Frame Frame1
Height = 2625
Left = 30
TabIndex = 8
Top = 4395
Width = 9210
Begin MSComctlLib.ProgressBar ProgressBar1
Height = 270
Left = 2520
TabIndex = 11
Top = 2280
Width = 6675
_ExtentX = 11774
_ExtentY = 476
_Version = 393216
Appearance = 1
End
Begin MSComctlLib.TreeView TreeView1
Height = 2355
Left = 75
TabIndex = 9
Top = 180
Width = 2340
_ExtentX = 4128
_ExtentY = 4154
_Version = 393217
HideSelection = 0 'False
Style = 7
FullRowSelect = -1 'True
ImageList = "ImageList1"
Appearance = 1
End
Begin MSComctlLib.ListView lvwDtAttribute
Height = 2175
Left = 2520
TabIndex = 10
Top = 150
Width = 6705
_ExtentX = 11827
_ExtentY = 3836
View = 3
LabelEdit = 1
LabelWrap = -1 'True
HideSelection = 0 'False
FullRowSelect = -1 'True
GridLines = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
NumItems = 0
End
End
Begin MSComctlLib.ImageList ImageList1
Left = 5205
Top = 3135
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 17
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":058A
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":069E
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":07B2
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":08C4
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":09D6
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":0AE8
Key = ""
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":0BF4
Key = ""
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":0D06
Key = ""
EndProperty
BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":0E18
Key = ""
EndProperty
BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":0F2A
Key = ""
EndProperty
BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":103C
Key = ""
EndProperty
BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":114E
Key = ""
EndProperty
BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":1260
Key = ""
EndProperty
BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":1372
Key = ""
EndProperty
BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":1486
Key = ""
EndProperty
BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":1590
Key = ""
EndProperty
BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain1.frx":16A2
Key = ""
EndProperty
EndProperty
End
Begin VB.Menu mnuPopup
Caption = ""
Visible = 0 'False
Begin VB.Menu mnuNewMapWin
Caption = "新建地图窗口"
End
Begin VB.Menu mnuAddToCurrWin
Caption = "添加到当前窗口"
End
Begin VB.Menu mnuAttributeTable
Caption = "显示属性数据表"
End
End
End
Attribute VB_Name = "FrmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'=====================================SuperMap Objects示范工程说明=======================================
'
'功能简介:示范SuperMap Objects的数据集叠加分析功能
'所用控件:Supermap控件和SuperWorkspace控件
'所用数据:上一级目录\..\Data\World\下的World.sdb和World.sdd两个文件。
'操作说明:
' 1、使用"平移"、"自由缩放"、"全幅显示"按钮可以对窗口中的地图进行操作。
' 2、"删除数据集"可以删除"工作空间"中选中的数据集(当选中的不是数据集时不能删除)
' 3、"新建地图窗口",可以把"工作空间"中选中的数据集打开在地图窗口中。如果窗口中原来有图层,则将清除。
' 4、"添加到当前窗口",可以把"工作空间"中选中的数据集打开在地图窗口中,而不清除窗口中原有的图层。
' 5、"属性数据表",可以在右下的列表中显示出"工作空间"中选中的数据集的属性数据表。在该数据集打开时,列表中选中
' 一行对应的对象可以高亮显示。
' 6、"叠加分析"用于弹出"叠加分析"窗口。说明如下:
' 1) "源数据集":要对其进行分析的数据集
' 2) "叠加数据集":用于对"源数据集"进行分析的数据集,必须是面数据集
' 3) "结果数据集":这是要得到的结果数据集,其类型与"源数据集"相同。
' 以上三个数据集可以来自不同有数据源,本例中都来自一个数据源。
' 4) "分析方式":叠加分析的方式。详见帮助文档的解释。
'
'===================================SuperMap Objects 示范工程说明结束=====================================
Option Explicit
Dim objError As New soError
Private Sub btnAddCurrentWin_Click()
'添加数据集到当前浏览框中
mnuAddToCurrWin_Click
End Sub
Private Sub btnAttributeTable_Click()
'浏览数据集属性表
mnuAttributeTable_Click
End Sub
Private Sub btnDelDataset_Click()
'删除数据集
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -