• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
bobird的学习笔记
博客园    首页    新随笔    联系   管理    订阅  订阅

文章分类 -  ArcEngine

1 2 3 4 5 ··· 7 下一页
如何使用Name对象,包括WorkspaceNames和DatasetNames

摘要:如何使用Name对象,包括WorkspaceNames和DatasetNames 如何使用Name对象,包括WorkspaceNames和DatasetNames一、Name对象 Name对象是一个代表性对象。通过使用Name对象,可以访问它所代表的对象的一些基本属性,而不用将整个对象调入内存,如果 阅读全文
posted @ 2016-05-06 09:28 bobird 阅读(572) 评论(0) 推荐(0)
【ArcEngine入门与提高】Element(元素)、Annotation(注记)旋转

摘要:/// /// 旋转元素工具/// public sealed class BTGraphicsRotateElement : BaseTool{ #region 成员变量 private IHookHelper m_hookHelper = null; private IPoi... 阅读全文
posted @ 2016-01-14 15:48 bobird 阅读(1718) 评论(1) 推荐(1)
ArcEngine注记添加

摘要:/// /// 添加到注记图层 /// /// 注记图层 /// 插入的位置:一般是一个IPoint /// protected bool InsertAnnoFea(IFeatureClass pF... 阅读全文
posted @ 2016-01-14 15:43 bobird 阅读(1058) 评论(0) 推荐(0)
每用户订阅上的所有人SID 不存在

摘要:摘自:http://shaopengluo.blog.163.com/blog/static/1314464152011112144855776/检查发现是QueryFilter.WhereClause语句在查询shapefile格式的图层出现了问题,试验在查询gdb格式的图层不会报错。打开ArcG... 阅读全文
posted @ 2015-05-20 17:48 bobird 阅读(235) 评论(0) 推荐(0)
ArcGIS中Shapefile和Geodatabase坐标容差的问题

摘要:ArcGIS中,Shapefile文件是没有容差设置的,所以无论什么单位的坐标写入shapefile文件,都不存在容差问题。而在Geodatabase(gdb、mdb、sde)中,却有容差的问题。Geodatabase的默认的resolution为0.0001个单位,当单位为度的时候,0.0001度... 阅读全文
posted @ 2014-09-22 10:29 bobird 阅读(936) 评论(0) 推荐(0)
line string or poly boundary is self-intersecting

摘要:ITopologicalOperator2=topoOp=feature.Shape as ITopologicalOpearator2;//此次为feature.Shape,不知道为什么,提前对Polygon做Simplify()会无效.topoOp.IsKnownSimple2=false;//... 阅读全文
posted @ 2014-07-30 10:29 bobird 阅读(1137) 评论(0) 推荐(0)
AE中自定义坐标系的参考代码

摘要:在搞AE开发的时候,经常碰到的一个问题就是不同坐标系统之间的转换,AE中IGlobeControl控件中提供了IGlobeViewUtil类实现了大地坐标、屏幕坐标和地理坐标三者之间的转换,IMapControl中则提供了ToMapPoint和FromMapPoint两种方法实现屏幕坐标和地理坐标之... 阅读全文
posted @ 2014-07-28 10:20 bobird 阅读(1153) 评论(0) 推荐(0)
ArcEngine读取ShapeFile时,出现乱码的解决方案

摘要:分类:GIS2013-06-03 16:40486人阅读评论(0)收藏举报ArcEngine读取ShapeFile时,如果用LicenseControl的话,字段中含有汉字时可以正常使用,当使用LicenseInitializer进行初始化时,读取含有汉字的字段时,就会出现乱码。 乱码肯定是由于编码... 阅读全文
posted @ 2014-05-14 11:43 bobird 阅读(193) 评论(0) 推荐(0)
ArcEngine直连oracle

摘要:IPropertySet pPropertySet=new PropertySetClass();pPropertySet.SetProperty("server","10.2.1.35");pPropertySet.SetProperty("instance","sde:oracle11g:sjzx2011");pPropertySet.SetProperty("user","");pPropertySet.SetProperty("password", 阅读全文
posted @ 2013-12-09 09:27 bobird 阅读(335) 评论(0) 推荐(0)
ArcSDE的二种连接方式解释

摘要:ArcSDE的二种连接方式——估且称为客户端负载连接方式和服务器端负载连接方式。二种连接方式的设置:服务器端负载连接(最常用的连接方式):服务器名称(Server):SDE服务器的主机名称。服务端口(Service):安装SDE时选择的端口。默认是5151或esri_sde数据库(Database):根据不同的DBMS决定是否要填。oracle系列不用填,而SQLServer需要填写。用户名(UserName):不要解释了吧,哈哈。密码(password):也不要解释了吧。客户端负载连接:服务器名称(Server):不用填写。服务端口(Service):SDE:数据库类型。比如:如果是orac 阅读全文
posted @ 2013-12-09 09:01 bobird 阅读(421) 评论(0) 推荐(0)
ArcEngine中调整Element的上下显示顺序(遮盖)

摘要:添加Element:pGraphicsContainer.AddElement(pElement,0);Engine中IGraphicsContainer类似于栈,加Element时,默认加到第一个,所以会将之前加的要素盖住(这里,AddElement函数中的ZOrder参数貌似没有作用),要想改变Element的显示顺序,可以用BringForward,BringToFront,SendToBack,SendBackward这些函数来调整但是,这些函数的输入参数是IEnumElement,这个貌似有点不好弄到,找了半天终于找到一种方法可以得到:IGraphicsContainerSelect 阅读全文
posted @ 2013-08-01 10:00 bobird 阅读(529) 评论(0) 推荐(0)
新旧图幅号转换公式及示例代码(C#)

摘要:新旧图幅号转换的公式如下图所示:共有50W,25W,10W,5W,2.5W,1W几种比例尺下面的公式中,字母的下标表示对应的比例尺H代表新图幅号中的行号,例如:J49E016003中的016,共三位,不足三位的在前面补0L代表新图幅号中的列号,例如:J49E016003中的003,共三位,不足三位的在前面补0X代表旧图幅号中的地图代码值,有A,B,C,D的一律转为1,2,3,4其中[]表示取整,()表示取模旧->新新->旧:下面是一段将新图幅号转为旧图幅号的示例代码(C#,100W,50W,25W,10W,5W几种比例尺)//新图幅号转到旧图幅号 private string S. 阅读全文
posted @ 2013-08-01 09:57 bobird 阅读(1133) 评论(1) 推荐(0)
ArcEngine图层标注源码

摘要:public void EnableFeatureLayerLabel(IFeatureLayer pFeaturelayer, string sLableField, IRgbColor pRGB, int size, string angleField) { //判断图层是否为空 if (pFeaturelayer == null) return; IGeoFeatureLayer pGeoFeaturelayer = (IGeoFeatureLayer)pFeat... 阅读全文
posted @ 2013-07-31 15:55 bobird 阅读(403) 评论(0) 推荐(0)
ArcEngine标注和注记(-)

摘要:1.使用TextElment绘制标注. 这种方法的原理就是把属性表中的某个属性创建TextElment对象,然后使用IGraphicsContainer 的AddElement方法添加标注.实例代码://使用TextElment绘制标注, fieldName为要绘制的属性 public static void AddLable(AxMapControl axMapControl, ILayer layer, string fieldName) { IRgbColor pColor = new RgbColorClass() ... 阅读全文
posted @ 2013-07-29 09:05 bobird 阅读(1225) 评论(0) 推荐(0)
变文本element的背景色

摘要:ITextElement ele = new TextElementClass(); ele.Text = "大学四年生活"; IPoint point= new PointClass(){ X=e.mapX,Y=e.mapY}; (ele as IElement).Geometry =point; IFormattedTextSymbol formatted = new TextSymbolClass(); IRgbColor rgb = new RgbC... 阅读全文
posted @ 2013-07-26 08:11 bobird 阅读(346) 评论(0) 推荐(0)
数据库迁移(ToFileGDB)

摘要:using System;using System.Text;using System.Windows.Forms;using ESRI.ArcGIS.ConversionTools;using ESRI.ArcGIS.DataManagementTools;using ESRI.ArcGIS.Geoprocessor;using ESRI.ArcGIS.Geoprocessing;using ESRI.ArcGIS.esriSystem;namespace GeodatabaseConversion{ class ToFileGDB { [STAThread] ... 阅读全文
posted @ 2013-07-24 17:58 bobird 阅读(761) 评论(0) 推荐(0)
GP 裁剪

摘要:private IFeatureClass GPClipTool(IFeatureLayer inFeatureLayer,IFeatureLayer clipFeatureLayer) { Geoprocessor gp = new Geoprocessor(); Clip clipTool = new Clip(); clipTool.in_features = inFeatureLayer; clipTool.clip_features = clipFeatureLaye... 阅读全文
posted @ 2013-07-24 16:21 bobird 阅读(248) 评论(0) 推荐(0)
IMap 接口和IMapClipOptions接口

摘要:IMap接口的ClipGeometry可以裁剪地图,ComputerDistance可以计算两点间的距离。IMapOptions接口用于设置裁剪的各种情况。 阅读全文
posted @ 2013-07-23 15:37 bobird 阅读(530) 评论(0) 推荐(0)
ShapeFile 导入 Geodatabase

摘要:/// /// 将ShapeFile的数据导入到FeatureClass中 /// /// ShapeFile工作路径 /// ShapeFile要素类名称 /// 目标要素类 public bool ConvertShapeFileToFeatureClass(string strShapeFileFolder, string strShapeFileFeatureClassName, IFeatureClass targetFeatureClass) ... 阅读全文
posted @ 2013-07-18 11:43 bobird 阅读(478) 评论(0) 推荐(0)
OID 需要转换为ObjectID的四种情况

摘要:The logic used to determine if the OID field should be renamed to "ObjectID" can be classified with 4 cases.Case1: Both the InputWorkspace and ValidateWorkspace are provided.The OID field is renamed to "ObjectID" if the InputWorkspace is of type esriFileSystemWorkspace and the Va 阅读全文
posted @ 2013-07-18 10:42 bobird 阅读(281) 评论(0) 推荐(0)

1 2 3 4 5 ··· 7 下一页
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3