资源说明:目录
1 开发基础. .................................................................................... 1
1.1 ARCOBJECTS基础 .................................................................................2
1.1.1 ArcObjects简介...........................................................................2
1.1.2 ArcObjects的组件库 ...................................................................4
1.1.3理解对象模型图...........................................................................9
1.2组件对象模型.....................................................................................13
1.2.1软件开发历史.............................................................................13
1.2.2 ҔМᰃ㒘ӊᇍ䈵ൟ.................................................................15
1.3 .NETᑇৄὖ䗄....................................................................................19
1.3.1 䗮⫼䇁㿔䖤㸠ᯊ.........................................................................21
1.3.2 .NET Framework ㉏ᑧ.............................................................24
1.4 .NET㒘ӊϢCOM㒘ӊⱘѦ᪡.......................................................26
1.4.1 COMࣙ㺙˄ COM Wrappers˅ ................................................27
1.4.2 ESRIᦤկⱘPrimary Interop Assemblies ...............................30
1.4.3 COM݀ᓔ.NETᇍ䈵 ..............................................................31
1.4.4 COM.ࠄNETⱘ㉏ൟ䕀ᤶ ..........................................................34
1.5 ARCGISᓔথ䌘⑤ ...............................................................................35
1.5.1 ArcGIS Software Developer Kit (SDK) ..................................35
1.5.2 ESRI Developer Network Web site........................................41
1.6 ARCGISⱘѠᓔথᮍᓣ ...................................................................41
1.6.1 Փ⫼VBA䖯㸠ArcGISḠ䴶ⱘᅮ............................................ ࠊ42
1.6.2 Փ⫼DLL㒘ӊᠽሩArcGISḠ䴶.................................................49
1.6.3 Փ⫼ӊᵘᓎ⣀ゟᑨ⫼ᑣ.....................................................64
2 ARCMAP⫼᠋⬠䴶ᅮ ............................................................ ࠊ71
2.1 APPLICATIONᇍ䈵 ...............................................................................71
2.1.1 IApplicationষ........................................................................72
2.1.2 IMxApplicationষ...................................................................74
2.1.3 IWindowPostionষ................................................................74
2.1.4 IEnumprinterNames .................................................................75
2.2 DOCUMENTᇍ䈵 .................................................................................75
2.2.1 IMxDocumentষ....................................................................78
2.2.2 IDocumentDefaultSymbolsষ..............................................79
2.2.3 IDocumentEventsǃ IDocumentEventsDispষ..................81
i
2.3 ᅮࠊARCMAPⱘ⬠䴶..........................................................................82
2.3.1 ᅮࠊ⢊ᗕᷣ(StatusBar).............................................................82
2.3.2 ᅮذৃࠊ䴴にষ(DockableWindow) .......................................84
2.3.3 ᖿ᥋䬂㸼.....................................................................................85
2.3.4 CommandBars CommandBarᇍ䈵....................................86
2.3.5 CommandItemᇍ䈵...................................................................89
2.4 UICONTROLⱘՓ⫼ ............................................................................90
2.5 Փ⫼EXTENSIONᠽሩARCGIS ...........................................................91
3 Փ⫼ARCOBJECTSӊ㓪 .............................................. 94
3.1 MAPCONTROLӊ.............................................................................95
3.1.1 Џ㽕ষ.....................................................................................95
3.1.2 MapControlӊϢMXD᭛ӊ ...................................................97
3.1.3 哴ᷛϢӊⱘѸѦ...................................................................102
3.1.4 ᭄䗝ᢽ...................................................................................104
3.1.5 ᅲ⦄呄ⴐࡳ㛑...........................................................................104
3.2 PAGELAYOUTCONTROLӊ ............................................................108
3.2.1 PageLayoutControl᪡ MXD᭛ӊ......................................109
3.2.2 PageLayoutϢMapControl㘨 .............................................ࡼ110
3.2.3 Pagelayout䞠䴶㒬ܗࠊ㋴................................................. 112
3.3 TOCCONTROLӊ.......................................................................... 115
3.3.1 TOCControlӊὖ䗄.............................................................. 115
3.3.2 ᑨ⫼ᓔথᅲ՟........................................................................... 118
3.4 TOOLBARCONTROLঞⳌ݇ᇍ䈵.......................................................122
3.4.1 ὖ䗄...........................................................................................122
3.4.2 ToolbarControlӊ.................................................................124
3.4.3 ToolbarItem..............................................................................127
3.4.4 ToolbarMenu 㒘ӊ㉏..............................................................128
3.4.5 CustomizeDialog.....................................................................129
3.5 CONTROLCOMMANDS.......................................................................132
3.5.1 ὖ䗄...........................................................................................132
3.5.2 ControlCommands with the ToolbarControl........................132
3.5.3 ControlCommands without the ToolbarControl ..................132
3.6 ᑨ⫼ᓔথᅲ՟...................................................................................134
3.6.1 ὖ䗄...........................................................................................134
3.6.2 㞾ᅮНੑҸᓔথᅲ՟...............................................................138
3.6.3 㞾ᅮНᎹᓔথᅲ՟...............................................................140
3.6.4 㞾ᅮН㦰ऩᓔথᅲ՟...............................................................143
ii
4 ԩᔶԧᇍ䈵--GEOMETRY .............................................. 149
4.1 GEOMETRYൟ................................................................................149
4.2 POINTMULTIPOINTᇍ䈵 ................................................................153
4.2.1 Pointᇍ䈵..................................................................................153
4.2.2 Multipointᇍ䈵..........................................................................160
4.3 ࣙ㒰㒓 ENVELOPE ...........................................................................163
4.4 ᳆㒓(CURVE) ....................................................................................166
4.4.1 Segmentᇍ䈵...........................................................................168
4.4.2 䏃ᕘ(Path)ᇍ䈵........................................................................178
4.4.3 ⦃(Ring)ᇍ䈵............................................................................180
4.4.4 PolyCurveᇍ䈵 ........................................................................181
4.5 GEOMETRY䲚ড়ষ........................................................................187
4.5.1 IGeoemtryCollectionষ.......................................................187
4.5.2 ISegmentCollectionষ........................................................189
4.5.3 IPointCollectionষ...............................................................190
4.6 ࡼᗕ䎳䏾...........................................................................................190
4.7 ぎ䯈খ㗗...........................................................................................192
4.7.1 ҔМᰃぎ䯈খ㗗.......................................................................192
4.7.2 ϸ⾡തᷛ㋏㒳...........................................................................195
4.7.3 A0 Ёぎ䯈খ㗗ⱘ䆒㕂.............................................................198
4.7.4 SpatialReferenceᇍ䈵 ............................................................200
5 ഄⱘ㒘៤............................................................................ 202
5.1 MAPᇍ䈵...........................................................................................202
5.1.1 IMapষ..................................................................................203
5.1.2 IGraphicsContainerষ ........................................................206
5.1.3 IActiveViewষ ......................................................................208
5.1.4 IActiveViewEventsষ.......................................................... 211
5.1.5 IMapBookmarkষ................................................................ 211
5.1.6 ITableCollectionষ............................................................... 211
5.2 ሖᇍ䈵...........................................................................................212
5.2.1 ILayerষ................................................................................212
5.2.2 㽕㋴ሖ...................................................................................213
5.2.3 ᕔഄЁܹࡴCAD᭛ӊ ..........................................................221
5.2.4 TINሖ ....................................................................................224
5.2.5 GraphicsLayer.........................................................................225
5.3 SCREENDISPLAYᇍ䈵.......................................................................225
iii
5.4 ഄᥦ⠜...........................................................................................229
5.4.1 PageLayoutᇍ䈵 .....................................................................230
5.4.2 Pageᇍ䈵 .................................................................................231
5.4.3 SnapGridᇍ䈵..........................................................................232
5.4.4 SnapGuidesᇍ䈵.....................................................................233
5.4.5 RulerSettingsᇍ䈵...................................................................234
5.5 ELEMENTᇍ䈵...................................................................................234
5.5.1 ᔶܗ㋴...................................................................................235
5.5.2 Ḛᶊܗ㋴...................................................................................241
5.5.3 ܗ㋴ⱘ䗝ᢽ䎳䏾ᇍ䈵...............................................................244
5.6 MAPGRIDᇍ䈵ൟ ..........................................................................245
5.6.1 MapGridᇍ䈵 ...........................................................................246
5.6.2 MapGridBorderᇍ䈵 ...............................................................248
5.6.3 MapGridLabelᇍ䈵..................................................................249
5.6.4 MapGridFactoryᇍ䈵 ..............................................................252
5.7 MAPSURROUNDᇍ䈵........................................................................254
5.7.1 ՟ᇍ䈵...................................................................................254
5.7.2 ᣛ࣫䩜ᇍ䈵...............................................................................257
5.7.3 ↨՟ሎᇍ䈵...............................................................................257
5.7.4 ↨՟᭛ᴀᇍ䈵...........................................................................261
5.8 Փ⫼STYLEᇍ䈵................................................................................262
5.8.1 StyleGalleryᇍ䈵 .....................................................................263
5.8.2 StyleSelectorᇍ䈵 ...................................................................265
5.8.3 IStyleDialogষ......................................................................266
5.9 IDENTIFYDIALOGᇍ䈵 ......................................................................268
6 ぎ䯈᭄ⱘヺো ................................................................࣪271
6.1 买㡆ᇍ䈵...........................................................................................271
6.1.1 Colorᇍ䈵 .................................................................................274
6.1.2 买㡆ᇍ䆱Ḛ...............................................................................275
6.1.3 ColorRampᇍ䈵.......................................................................278
6.2 SYMBOLᇍ䈵.....................................................................................280
6.2.1 MarkerSymbolᇍ䈵.................................................................282
6.2.2 LineSymbolᇍ䈵......................................................................285
6.2.3 FillSymbolᇍ䈵 ........................................................................288
6.2.4 TextSymbolᇍ䈵 ......................................................................291
6.2.5 3DChartSymbolᇍ䈵...............................................................294
6.3 ࠊϧ乬.......................................................................................295
iv
6.3.1 SimpleRendererⴔ㡆⊩..........................................................297
6.3.2 ClassBreakRendererⴔ㡆⊩..................................................299
6.3.3 UniqueValueRendererⴔ㡆⊩................................................304
6.3.4 ProportionalSymbolRendererⴔ㡆⊩ ...................................308
6.3.5 ChartRendererⴔ㡆 ................................................................312
6.3.6 DotDensityRendererⴔ㡆⊩...................................................323
6.3.7 ⴔ㡆ЁՓ⫼ⱘ䅵ㅫᮍ⊩...........................................................326
6.4 ഄⱘᷛ⊼.......................................................................................330
6.4.1 TextElementᷛ⊼.....................................................................330
6.4.2 ArcObjectsЁⱘᷛ⊼ ...............................................................333
6.5 བԩϢഄ䖯㸠Ѧ.......................................................................ࡼ336
6.5.1 ѻ⫳ᮄGeometryⱘFeedbackᇍ䈵........................................337
6.5.2 ⿏ԩࡼᔶԧᇍ䈵Ϟⱘ㡖⚍...................................................344
6.5.3 ⿏ࡼᭈϾᇍ䈵...........................................................................349
6.5.4 ݊Ҫ DisplayFeedbackҟ㒡 ................................................352
7 ഄⱘ䕧 ............................................................................ߎ358
7.1 ഄⱘᠧॄ䕧...............................................................................ߎ358
7.1.1 Printer㉏...................................................................................358
7.1.2 Paperᇍ䈵 ................................................................................360
7.1.3 ӊЁᠧॄ䕧...................................................................ߎ362
7.2 ഄⱘ䕀ᤶ䕧...............................................................................ߎ363
7.2.1 ѢᕅڣḐᓣⱘ䕧...............................................................ߎ363
7.2.2 Ѣⶶ䞣Ḑᓣⱘ䕧...............................................................ߎ366
7.2.3 ExportFileDialogᇍ䈵 .............................................................369
8 ぎ䯈᭄ㅵ⧚........................................................................ 373
8.1 GEODATABASEⱘ⸔ⶹ䆚..............................................................374
8.2 WORKSPACE ঞⳌ݇ᇍ䈵................................................................378
8.2.1 ᠧᓔᎹぎ䯈...........................................................................379
8.2.2 Ꮉぎ䯈...................................................................................383
8.2.3 PropertySet..............................................................................387
8.2.4 ৡ⿄ᇍ䈵...................................................................................388
8.3 DATASETᇍ䈵....................................................................................389
8.3.1 GeoDataset㉏ .........................................................................390
8.3.2 FeatureDatasetᇍ䈵 ...............................................................390
8.4 㸼ǃᇍ䈵㉏㽕㋴㉏.......................................................................393
8.4.1 Tableᇍ䈵 .................................................................................395
v
8.4.2 ObjectClassᇍ䈵 .....................................................................398
8.4.3 FeatureClassᇍ䈵...................................................................401
8.4.4 ᄫ↉䲚Ϣᄫ↉...........................................................................403
8.4.5 Ϣᄫ↉Ⳍ݇ⱘᇍ䈵...................................................................408
8.5 ROWˈ OBJECT FEATURE ᇍ䈵................................................414
8.5.1 RowBufferRowᇍ䈵 ............................................................415
8.5.2 ObjectFeatureᇍ䈵 .............................................................416
8.5.3 ⚍䗝⊩㦋প㽕㋴.......................................................................420
8.5.4 ᮄ㽕㋴...................................................................................423
8.6 ݇㋏Ϣ݇㋏㉏...................................................................................425
8.7 ᭄䕀ᤶϢ㺙䕑...............................................................................428
9 ぎ䯈ߚᵤ................................................................................ 433
9.1 ぎ䯈ᶹ䆶...........................................................................................433
9.1.1 Cursorᇍ䈵...............................................................................434
9.1.2 QueryFilterϢSpatialFilterᇍ䈵 ..............................................435
9.1.3 QueryDefᇍ䈵..........................................................................439
9.1.4 TableSortᇍ䈵..........................................................................440
9.1.5 㽕㋴䗝ᢽ䲚...............................................................................442
9.2 ぎ䯈ᢧᠥ䖤ㅫ...................................................................................445
9.2.1 ITopologicalOperatorষ......................................................445
9.2.2 ᓔথᅲ՟...................................................................................451
9.3 ぎ䯈݇㋏䖤ㅫ...................................................................................457
9.3.1 IRelationaloperatorষ.........................................................457
9.3.2 ᓔথᅲ՟--ᶹᡒᶤϔ䖍ᔶ㽕㋴ⱘ᠔᳝䚏㽕㋴ ................461
9.4 IPROXIMITYOPERATORষ.............................................................465
9.5 ߚࡴᵤ...........................................................................................468
9.5.1 ⶶ䞣ሖߚࡴᵤ...................................................................468
9.5.2 ᷙḐሖⱘߚࡴᵤ...............................................................477
10 ぎ䯈᭄㓪䕥--MAPEDITINGᅲ՟ࠪᵤ ............................ 480
10.1 IWORKSPACEEDITষ ....................................................................480
10.2 MAPEDITINGࡳ㛑ࠪᵤ .....................................................................482
10.2.1 ࡳ㛑ὖ䗄...................................................................................482
10.2.2 ҷⷕߚᵤ...................................................................................483
11 ARCCATALOGᇍ䈵............................................................ 493
11.1 GXOBJECTᇍ䈵 ................................................................................495
vi
11.2 GXDIALOGᇍ䈵.................................................................................499
12 RASTER᭄ㅔҟ................................................................ 502
12.1 RASTERWORKSPACEᇍ䈵 ...............................................................503
12.2 ᷙḐ᭄䲚...................................................................................505
12.3 ᷙḐሖᇍ䈵...............................................................................507
খ㗗᭛⤂ .......................................................................................... 509
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。