Blog

Get Geometric collection in dataset using arcobject.

Posted 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;
comments
COMMENT USING
PREMIUM SPONSORS
Over-C is a holistic consortium of communications and technology specialists. We build, deploy and market both business as well as consumer products and solutions.
Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Join a Chapter