摘要:创建一个类库开启VS2008,以Visual C# >> ArcGIS >>Extending ArcObjects 下的Class Library (ArcMap)为模板创建一个新类库项目,将该项目命名为ArcMapCOM,选择合适的存储位置,单击确定,如下图所示: 下载 (89.04 KB)2011-11-13 20:48删除class1 文件点击完成后,项目创建了默认的class1.cs 文件,因为在该项目中不会使用该文件,所以删除该文件,如下图: 下载 (23.88 KB)2011-11-13 20:48添加命令模板添加一个命令模板,在项目上右键,添加,然后找到
阅读全文
摘要:桌面定制开发COM方式到Add-In方式的迁移 本帖最后由 sishui198 于 2011-11-19 08:31 编辑 http://bbs.esrichina-bj.cn/esri/viewthread.php?tid=105152&extra=page%3D1%26amp%3Bfilter%3Ddigest com方式定制http://bbs.esrichina-bj.cn/esri/viewthread.php?tid=105114&extra=page%3D1%26amp%3Bfilter%3Ddigest add-in方式前面个两篇帖子分别对桌面定制开发的COM方
阅读全文
摘要:ConnectToSDE connectToSDE = new ConnectToSDE("59.64.154.185", "5152", "sde", "sde", "", "sde.DEFAULT"); try { connectToSDE.Connect(); IFeatureWorkspace featureWsp = (IFeatureWorkspace)connectToSDE.WorkSpace; IFeatureClass featureClass = fea
阅读全文
摘要://显示table of Content内容 private void OpenContenWindow()//over视图 { IMxDocument mxDocument = m_application.Document as IMxDocument; int num = mxDocument.ContentsViewCount; for (int i = 0; i < num; i++) { ESRI.ArcGIS.ArcMapUI.IContentsView contentsView = mxDocument.get_ContentsView(i); MessageBox.Sho
阅读全文
摘要:About ArcPy ArcPy is a site package that comes with any ArcGIS product. The functions are built upon the fine-grain ArcObjects to simplify many geoprocessing tasks. Its goal is to create the cornerstone for a useful and productive way to perform geographic data analysis, data conversion, data manage
阅读全文
摘要:private void ExtensionList(IApplication application){ List < string > loadedExtensions = new List < string > (); List < string > unloadedExtensions = new List < string > (); //All extensions returned by extension manager have been loaded at startup. IExtensionManager regularE
阅读全文
摘要:从含有X,Y,Z的字段数据生成要素类上一篇 / 下一篇 2011-11-02 10:40:54 / 个人分类:ArcGIS Engine之路 查看( 171 ) / 评论( 0 ) / 评分( 0 / 0 ) 好长时间没更新博客了,从含有X,Y,Z的字段数据生成要素类,代码如下:public IFeatureClass CreateXYEventSource(ITable table, ISpatialReference spatialReference){ IXYEvent2FieldsProperties xyEvent2FieldsProperties = new XYEvent2Fie
阅读全文
摘要:Function FindLabel ( [NAME],[DZM] )dim cd1dim cd2dim bcd cd1=len([DZM])cd2=len([NAME])if (cd1>cd2) then bcd=round((cd1-cd2)/2,0) FindLabel = "<und>"& string(bcd," ") & [NAME] &string(bcd," ") &"</und>"&vbcrlf& [dzm]else F
阅读全文
摘要:Function FindLabel ( [NAME],[DZM] )dim cd1dim cd2dim bcd cd1=len([DZM])cd2=len([NAME])if (cd1>cd2) then bcd=round((cd1-cd2)/2,0) FindLabel = "<und>"& string(bcd," ") & [NAME] &string(bcd," ") &"</und>"&vbcrlf& [dzm]else F
阅读全文