How can I read the geometry type of shapefiles with ArcObjects and Vbnet?
I want to check whether it is a point, polygon, or a line.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
include ESRI.ArcGIS.DatabaseSourcesFile in your project here is a C# code showes you how to open a shape file,you can convert it to VB.Net simply
IWorkspaceFactory ipShapeWF = new ShapefileWorkspaceFactoryClass(); `//strfilepath the path to shape file,include only folder not shape file itself' IWorkspace ipShapeWS = ipShapeWF.OpenFromFile(strfilepath, 0); IFeatureWorkspace ipFW = (IFeatureWorkspace)ipShapeWS; IFeatureClass ipFC = ipFW.OpenFeatureClass("shapefilename"); MessageBox.Show(ipFC.ShapeType.ToString());