📄 frmmain.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{A6985C02-94B5-4D89-A1FE-C2FFD60BB633}#5.2#0"; "SuperTopo.ocx"
Object = "{03ED3B1E-ED1B-4A2E-8FE3-D8D1A673F5D4}#5.2#0"; "SuperMap.ocx"
Begin VB.Form frmMain
BorderStyle = 3 'Fixed Dialog
Caption = "拓扑处理"
ClientHeight = 6975
ClientLeft = 45
ClientTop = 330
ClientWidth = 11055
Icon = "frmMain.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6975
ScaleWidth = 11055
StartUpPosition = 2 'CenterScreen
Begin SuperTopoLib.SuperTopo SuperTopo1
Left = 4020
Top = 3600
_Version = 327682
_ExtentX = 847
_ExtentY = 847
_StockProps = 0
End
Begin SuperMapLib.SuperMap SuperMap
Height = 6375
Left = 2340
TabIndex = 14
Top = 600
Width = 8655
_Version = 327682
_ExtentX = 15266
_ExtentY = 11245
_StockProps = 160
End
Begin SuperMapLib.SuperWorkspace SuperWorkspace
Left = 2880
Top = 3360
_Version = 327682
_ExtentX = 847
_ExtentY = 847
_StockProps = 0
End
Begin VB.CommandButton btnZoomOUt
Caption = "缩小"
Height = 375
Left = 2262
TabIndex = 13
Top = 15
Width = 735
End
Begin VB.CommandButton btnCopyDt
Caption = "备份数据集"
Enabled = 0 'False
Height = 375
Left = 6707
TabIndex = 12
Top = 15
Width = 1110
End
Begin VB.CommandButton btnDelTopoErr
Caption = "删除错误"
Enabled = 0 'False
Height = 375
Left = 5788
TabIndex = 11
Top = 15
Width = 885
End
Begin VB.CommandButton btnTopoErr
Caption = "显示错误"
Enabled = 0 'False
Height = 375
Left = 4869
TabIndex = 10
Top = 15
Width = 885
End
Begin VB.CommandButton btnTopu
Caption = "拓扑处理"
Enabled = 0 'False
Height = 375
Left = 3950
TabIndex = 8
Top = 15
Width = 885
End
Begin VB.CommandButton btnExit
Caption = "退出"
Height = 375
Left = 10140
TabIndex = 7
Top = 15
Width = 900
End
Begin VB.CommandButton btnSelect
Caption = "选择"
Height = 375
Left = -15
TabIndex = 6
Top = 15
Width = 705
End
Begin VB.CommandButton btnPan
Caption = "漫游"
Height = 375
Left = 724
TabIndex = 5
Top = 15
Width = 705
End
Begin VB.CommandButton btnZoonIn
Caption = "放大"
Height = 375
Left = 1463
TabIndex = 4
Top = 15
Width = 765
End
Begin VB.CommandButton btnViewEntire
Caption = "全幅显示"
Height = 375
Left = 3031
TabIndex = 3
Top = 15
Width = 885
End
Begin VB.CommandButton btnDelDt
Caption = "删除数据集"
Enabled = 0 'False
Height = 375
Left = 7851
TabIndex = 2
Top = 15
Width = 1110
End
Begin VB.CommandButton btnDisplyDt
Caption = "显示数据集"
Enabled = 0 'False
Height = 375
Left = 8995
TabIndex = 1
Top = 15
Width = 1110
End
Begin MSComctlLib.TreeView tvwData
Height = 6270
Left = 45
TabIndex = 0
Top = 660
Width = 2220
_ExtentX = 3916
_ExtentY = 11060
_Version = 393217
HideSelection = 0 'False
LabelEdit = 1
Style = 7
ImageList = "ImgTreeView"
Appearance = 1
End
Begin MSComctlLib.ImageList ImgTreeView
Left = 5400
Top = 2175
_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 = "frmMain.frx":058A
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":069C
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":07AE
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":08C0
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":09CC
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":0AE0
Key = ""
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":0BF2
Key = ""
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":0D04
Key = ""
EndProperty
BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":0E0E
Key = ""
EndProperty
BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":1162
Key = ""
EndProperty
BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":1274
Key = ""
EndProperty
BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":1386
Key = ""
EndProperty
BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":1498
Key = ""
EndProperty
BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":15AA
Key = ""
EndProperty
BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":16BC
Key = ""
EndProperty
BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":17C6
Key = ""
EndProperty
BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":18D8
Key = ""
EndProperty
EndProperty
End
Begin VB.Label Label1
Caption = "数据列表:"
Height = 240
Left = 120
TabIndex = 9
Top = 465
Width = 1005
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控件、SuperTopo控件
'所用数据:..\Data\World\World.sdb(使用前请备份这两个文件,以备以后使用)
'操作说明:
' 1、"选择"、"漫游"、"放大"、"缩小"、"全幅显示"等按钮可以对地图进行基本操作。
' 2、在数据列表中选择一个数据集,单击"删除数据集"可以从数据源文件中删除此数据集(此删除不可恢复,请慎用)
' 3、在数据列表中选择一个数据集,单击"显示数据集"可以在地图窗口中显示该数据集。在数据列表中双击一个数据集,也可。
' 4、在数据列表中选择一个线或网络数据集,单击"备份数据集"可以对该数据集进行备份。建议在进行数据集拓扑处理前先备份数据集,然后在备份数据集的基础上进行拓扑处理。
' 5、在数据列表中选择一个线或网络数据集,单击"拓扑处理",可以对此数据集进行拓扑批处理。
' 6、在数据列表中选择一个线或网络数据集,单击"显示错误",可以在地图窗口中高亮显示该数据集中有拓扑错误的对象。
' 7、在数据列表中选择一个线或网络数据集,单击"删除错误"可以把有拓扑错误的对象从数据集中删除掉。
'
'===================================SuperMap Objects示范工程说明结束=====================================
Option Explicit
Private Sub btnCopyDt_Click() '备份数据集以便在拓扑分析失败后恢复数据集
Dim objDS As soDataSource
Dim strDtName As String, strDtNewName As String
Dim objDt As soDataset, objDtNew As soDataset
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -