Arcgis Engine (ae) Interface Explanation (1): featureClass

// IFeatureClass source of resolve on their own 
                IFeatureClass FeatureClass = null ;

                // get featureClass various names
                 // PS: featureClass as possible to IDataset, and therefore can not just look at the interface, the data set is not only able to achieve IDataset interfaces 
                IDataset the DataSet = featureClass as IDataset;
                 // theoretically Name and BrowseName are name, in many cases are the same, as in when I can not be completely summed up the general priority with the name 
                String name = dataset.Name;
                 String BrowseName = dataset.BrowseName;
                 // alias 
                String aliasName = featureClass.AliasName;
                 // remove the name sde user name, because if it is sde of featureClass, before the name will take sde user name belongs to, for example: sde.road, it will return after treatment Road 
                String nameWithoutSdeName = FeatureClassHelper.GetDatasetNameWithOutSDEUser(dataset);

                // geometry types, including point (Point) line (Polyline) plane (Polygon) like 
                esriGeometryType geometryType2 = featureClass.ShapeType;

                // wordspace, where available featureClass worksapce 
                the IWorkspace wordspace = dataset.Workspace;
                 // wordspace, the data set may be obtained featureClass where, if not in the data set featureClass, this property returns null 
                IFeatureDataset FeatureDataset = featureClass.FeatureDataset;

                // field name oid field 
                String oidFieldName = featureClass.OIDFieldName;
                 // field names geometric field 
                String shapeFieldName = featureClass.ShapeFieldName;

                // IGeoDataset geometry associated interface 
                IGeoDataset geoDataset = FeatureClass AS IGeoDataset;
                 // range of FeatureClass 
                IEnvelope Envelope = geoDataset.Extent;
                 // spatial reference 
                ISpatialReference spatialReference2 = geoDataset.SpatialReference;

 

Guess you like

Origin www.cnblogs.com/cannel/p/11074312.html