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;
COMMENT USING
PREMIUM SPONSORS
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.
SPONSORED BY
  • MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.
Employers - Post Free Jobs