Statement 1: I Caishuxueqian, with Guo Degang words, "I was a schoolboy," if wrong, welcomed the discussion, do not abuse ^ _ ^.
Statement 2: Keep the original blog when reproduced the original link or add my blog address at the beginning of the article, or the right to retain legal liability.
origin
Give a man a fish than giving the fishing, learning any one technology, I believe that all start from the help file, ArcEngine no exception.
In this paper 主要分享如何使用ArcEngine帮助
, 快速找到自己想要的信息
as well 如何利用帮助整体的学习官方的示例代码
.
installation
ArcEngine installation reference Bowen: Portal
ArcEngine Help
Local Help : located C:\Program Files (x86)\ArcGIS\DeveloperKit10.4\Help\VS\ArcObjects
, you can be found directly in the Start menu.
Online Help : Portal (10.6) , Portal (10.1 to 10.3)
, other local help : local as well as local engineering code snippets and sample code to help you learn ArcObjects
GitHub resources : Portal
Help category
Help divided into two blocks of content:
- ArcObjects Help for .NET developers: including the development of some help AO (equivalent to an example of Quick Start)
- ArcObjects reference: including the classes and interfaces in the namespace AO (equivalent API)
How to use the Help
Local installation help
Normally: general 先安装VS软件
, then 再安装ArcObjects
, you can find a local help in the Start menu.
Other cases: If you start there is no documentation, or you can not find help for VS help AO, refer to this blog ( Portal ) configuration.
Using help
Can be used to help query interfaces, classes, can obtain relevant information from the results of the query (as applicable to products which, in what ways, this is why the interface or class, which inherits from class, as well as information related to the sample code Remarks and other information)
personal suggestion
- Share my personal habits:
- Baidu / Google related keywords to search snippet.
- Use to help other relevant interface or class.
- See which products support license, if you want to be able to realize the function, to achieve and to what extent.
- Time query interface, you can look at what class implements this interface, the way to follow it and see what this class also implements the interface, whether QI can use to achieve our function.
- Porting the code, solve the problems encountered in.
- Recommend carefully read the contents of this section (read need to have some English skills, such as the strength of small series can not help translation tools)
- ArcEngine learning process is to continue the process of the SDK familiar interfaces and classes, so do not worry, over time, more practice, your application will be very skilled.
Summary :
Just do it!
Don't Worry,Be Happy!
Application of practical operation
Example:
A:我想添加一个图层到地图中怎么添加啊?
B.Easy,请听贫道如实道来......
Analyze the problem, probably the following steps:
# `获取容器对象(Map or Scene)
# 创建/获取图层(Layer)
# 添加图层
Step breakdown:
- Adding layers to know where to add, is added to the two-dimensional map or three-dimensional map.
- If a Map, which is the source of this MapControl control (relevant interface is IMapcontrol2), Ruoguo is Scene, which is the source Scene (relevant interface is ISceneControl), you can get to IMap or IScene object through the property interface.
- If it is a two-dimensional map, the map is the English word for the Map, then search Map IMap interface or class in Help (recommended to search interface); if the Earth is three-dimensional, so is the corresponding Scene, you can search IScene interfaces.
- The search is completed we can see what information
- We need
添加引用ESRI.ArcGIS.Carto.dll
, and use the application using the namespace; - We also know that we have
需要有ArcGIS Desktop或ArcEngine的许可
; - We found that there are two
AddLayer
methods; - Click AddLayer method
告诉我们我们参数信息
, the object needs ILayer interface (we need a New ILayer interface objects) - Then we need to check ILayer interfaces in the same way
- In addition, we can help see the bottom
.NET Snippets
or.NET Related Topics
, there will give us the corresponding code fragment.
- We need
- According to the logic code.
Exercise
- View IFeatureWorkspace in which namespace, use the interface which namespace needs using, need what level of permission, what class implements this interface
- View IFeatureWorkspace of OpenFeatureClass method, need to understand what parameters, what type of return, the way to see which class has properties and methods IFeatureClass
- See which class implements the interface ITool
- View IMap, IWorkspace, IFeatureLayer, IFeatureClass, ITable, IField interface, combined with OMD understand the relationship between them
- Try to read the help section Developing with ArcGIS