Blog
157   0

Get Geometric collection in dataset using arcobject.

By Yogesh Sharma Blogs | ArcObject Nov 06, 2012
Get Geometric collection in dataset using arcobject.
Get geometric Network using arcobject-

IWorkspaceFactory pwsf = new AccessWorkspaceFactoryClass();
            IWorkspace pws = pwsf.OpenFromFile(@"D:\csharp_project\PSEB\FOCAL-POINT.mdb", 0);
            IFeatureWorkspace pFeatWs = (IFeatureWorkspace)pws;
            IFeatureDataset pFeatDs=pFeatWs.OpenFeatureDataset("Electrical");


            INetworkCollection pnetColl = (INetworkCollection)pFeatDs;

            //From cntGeometricNetwork we get the geometric network count

            int cntGeometricNetwork= pnetColl.GeometricNetworkCount;
COMMENT USING

PREMIUM SPONSORS

Hire Mobile & Web Developer on demand. 100% satisfaction. Try for 1 week or Money Back. Local and remote developers available all over USA.

Latest Blogs