码迷,mamicode.com
首页 > 数据库 > 详细

Geodatabase - 判断是否处于编辑状态

时间:2014-10-29 01:50:10      阅读:350      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   http   io   color   ar   for   sp   

Engine中提供IDatasetEdit来判断数据是否处于编辑状态,我们知道,在ArcMap中,进行编辑的不一定都是要素类,也可以是表,网络几何等.以下能在ArcMap中进行编辑的数据都实现了 IDatasetEdit接口:

Classes that implement IDatasetEdit

ClassesDescription
AttributedRelationshipClass Esri Attributed Relationship Class object.
CadastralFabric (esriGeoDatabaseExtensions) A container for querying information about a cadastral fabric.
CadastralFabricFDExtension (esriGeoDatabaseExtensions) A container for describing this cadastral fabric‘s feature dataset extension properties.
FeatureClass Esri Feature Class object.
FeatureDataset Esri Feature Dataset object.
GeometricNetwork Esri Geometric Network object.
NetworkDataset A container for querying information about a network dataset.
NetworkDatasetFDExtension A container for describing this network dataset‘s feature dataset extension properties.
NetworkDatasetWorkspaceExtension A container for describing this network dataset‘s workspace extension properties.
ObjectClass Esri Object Class object.
RasterCatalog A collection of raster datasets in a Geodatabase table.
RouteEventSource (esriLocation) Route event source object.
SchematicDiagramClass (esriSchematic) Schematic diagram class object.
SchematicElementClass (esriSchematic) Schematic element class object.
SchematicInMemoryFeatureClass (esriSchematic) Schematic in memory feature class object.
StreetNetwork A container for describing a street network.
Table Esri Table object.
TemporalFeatureClass (esriTrackingAnalyst) Controls settings for the temporal feature class.
TemporalRecordSet (esriTrackingAnalyst) Defines the COM coclass for the TemporalRecordSet COM object.
Topology Esri Topology object.
UtilityNetwork A container for describing a utility network.
XYEventSource XY event source object.

如下代码演示了判断要素类是否处于编辑状态:

1 private void IsEditing() {
2     ESRI.ArcGIS.Carto.ILayer lyr = mapCtrl_main.get_Layer(0);
3     ESRI.ArcGIS.Carto.IFeatureLayer flyr = (ESRI.ArcGIS.Carto.IFeatureLayer)lyr;
4 
5     ESRI.ArcGIS.Geodatabase.IFeatureClass fclass = flyr.FeatureClass;
6     ESRI.ArcGIS.Geodatabase.IDatasetEdit dsEdit = (ESRI.ArcGIS.Geodatabase.IDatasetEdit)fclass;
7     bool isEditing = dsEdit.IsBeingEdited();
8 }

 

Geodatabase - 判断是否处于编辑状态

标签:des   style   blog   http   io   color   ar   for   sp   

原文地址:http://www.cnblogs.com/listened/p/4058357.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!