Get MDB under Feature class Featureclass, standalone feature class, no DataSet Get feature class

Source: Internet
Author: User
Tags mdb database

reprinted from: Http:// the name of the MDB database feature classThe overall idea is as follows:
1. Get all DataSet objects in the workspace (Ienumdataset) through the Datasets property of Iworkspace
2. Enumerate Enumdataset, get the DataSet object
3. If the dataset is Featuredataset
4.QI to Ifeatureclasscontainer interface
for (int i=0;i < pfclcontainer.classcount;i++)
Ifeatureclass pfeatureclass= Pfclcontainer.class (i);
Idataset Pdataset = Pfeatureclass as Idataset;
String Pfeaclsname=;
}--------------------------------------------other-----------------------------reprinted from: u011609113/article/details/52083451

Some feature datasets are placed in a particular feature dataset, while others are directly in the workspace. Such as.

Getting a feature class that is independent of the feature DataSet is simple, as follows:

1 /// <summary>  2 ///Get a standalone feature class3 /// </summary>  4 /// <param name= "In_somefeaturedataset" >any one feature dataset under the workspace</param>  5 /// <param name= "In_featureclassname" >name of the standalone feature class</param>  6 /// <returns>The independent feature class you are looking for</returns>  7 PrivateIfeatureclass Prv_getindependentfeatureclass (Ifeaturedataset in_somefeaturedataset,stringin_featureclassname)8 {  9         //get all the standalone feature classesTenIenumdataset temp_allindependentfeatureclass=(IN_SomeFeatureDataset.Workspace.get_Datasets (Esridatasettype.esridtfeatureclass));  One         //get each individual feature class AIfeatureclass Each_independentfeatureclass = () asIfeatureclass;  -         //traverse all feature classes -          while(Each_independentfeatureclass! =NULL)   the         {   -             //If you find it, go back. -             if(each_independentfeatureclass.aliasname==in_featureclassname) -                 returnEach_independentfeatureclass;  +         }   -         return NULL;  +}

Get MDB under Feature class Featureclass, standalone feature class, no DataSet Get feature class

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.