电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

AE创建各种类型的featureclass代码

AE创建各种类型的featureclass代码_第1页
1/49
AE创建各种类型的featureclass代码_第2页
2/49
AE创建各种类型的featureclass代码_第3页
3/49
AE 中新建 shapefile,自定义字段 代码由 ESRI 社区 GIScafe 提供 IFields pFields = new FieldsClass(); IFieldsEdit pFieldsEdit = pFields as IFieldsEdit; IField pField = new FieldClass(); IFieldEdit pFieldEdit = pField as IFieldEdit; pFieldEdit.Name_2 = "shape"; pFieldEdit.Type_2 = esriFieldType.esriFieldTypeGeometry; //set up Geometry Definition IGeometryDef pGeometryDef = new GeometryDefClass(); IGeometryDefEdit pGeometryDefEdit = pGeometryDef as IGeometryDefEdit; pGeometryDefEdit.GeometryType_2 = esriGeometryType.esriGeometryPoint; //Point,line,polygon et. pGeometryDefEdit.SpatialReference_2 = axMapControl1.SpatialReference; pFieldEdit.GeometryDef_2 = pGeometryDef; pFieldsEdit.AddField(pField); //新建字段 pField = new FieldClass(); pFieldEdit = pField as IFieldEdit; pFieldEdit.Length_2 = 15; pFieldEdit.Name_2 = "SchoolName"; pFieldEdit.AliasName_2 = "SchoolName"; pFieldEdit.Type_2 = esriFieldType.esriFieldTypeString; pFieldsEdit.AddField(pField); string mappath = @"E:\data"; string layername="school"; IWorkspaceFactory pWorkspaceFactory = new ShapefileWorkspaceFactory(); IFeatureWorkspace pFeatureWorkspace = pWorkspaceFactory.OpenFromFile(mappath,0) as IFeatureWorkspace; pFeatureWorkspace.CreateFeatureClass(layername+".shp",pFields,null,null,esriFeatureType.esriFTSimple,"shape",""); axMapControl1.AddShapeFile(mappath,layername+".shp"); 代码中路径名称可以自定义 posted on 2008-07-12 15:28 duckw eeds 阅读(137) 评论(0) 编辑 收藏 网摘 所属分类: AE+C# AE 创建各种类型的 featu reclass 代码 VB.Net 源码 ''' ''' 创建 Annotation 类型的 featureclass ''' ''' annotation 的工作空间 ''' annotation 的symbol ''' annotation 的比例 ''' annotation 的名称 ''' 创建的An...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

AE创建各种类型的featureclass代码

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部