首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > VB Dotnet >

怎样声明esriGeometryPolygon、esriFTSimple、esriFieldTypeDouble这样的名称,该如何处理

2012-04-24 
怎样声明esriGeometryPolygon、esriFTSimple、esriFieldTypeDouble这样的名称VB.NET codepGeometryDef New

怎样声明esriGeometryPolygon、esriFTSimple、esriFieldTypeDouble这样的名称

VB.NET code
pGeometryDef = New GeometryDef       pGeometryDefEdit = pGeometryDef        With pGeometryDefEdit            .GeometryType = esriGeometryPolygon            .SpatialReference = New UnknownCoordinateSystem        End With
 
在这里面会提示 esriGeometryPolygon是未声明名称。
在查询后发现esriGeometryPolygon是IGeometry.GeometryType Property中的,为什么直接用说没有声明呢?
而且在程序中esriFieldTypeDouble是esriFieldType Constants中的常量吗?怎样来使用呢?不太理解啊……
上面这两个问题貌似是一个类型的哦?
esriFTSimple没有搜到相关的呢。。。
VB.NET code
pFeatClass = pFeatureWorkspace.CreateFeatureClass(sFileName, pFields, Nothing, Nothing, esriFTSimple, sShapeFieldName, "")


感觉很混乱啊……哪位大神帮忙讲解一下~

[解决办法]
去找这些类的命名空间,引用过来,或者dll引用过来,然后using其命名空间

热点排行