首页 > 代码库 > 判断Featureclass的类型
判断Featureclass的类型
一个Featureclass可以是Shapefile Feature Class、Personal Geodatabase Feature Class、File Geodatabase Feature Class等多种选择。判断其类型可从以下接口中获得。
1.FeatureLayer的话,可以直接从IFeatureLayer2.DataSourceType 取得。
2.Featureclass的话,可以QI到IDataset.Category取得。
根据返回字符串的关键字进行相应判断,英文版和中文版后面的关键不同,中文版返回中文,如“要素类”等。
Layer Type | Value |
---|---|
Personal Geodatabase | "Personal Geodatabase Feature Class" |
SDE | "SDE Feature Class" |
Shapefile | "Shapefile Feature Class" |
ArcInfo or PC ArcInfo Coverage (annotation) | "Annotation Feature Class" |
ArcInfo or PC ArcInfo Coverage (point) | "Point Feature Class" |
ArcInfo or PC ArcInfo Coverage (line) | "Arc Feature Class" |
ArcInfo or PC ArcInfo Coverage (polygon) | "Polygon Feature Class" |
Edge | "StreetMap Feature Class" |
CAD (annotation) | "CAD Annotation Feature Class" |
CAD (point) | "CAD Point Feature Class" |
CAD (line) | "CAD Polyline Feature Class" |
CAD (polygon) | "CAD Polygon Feature Class" |
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。