// Create a text file workspace factory. Type factoryType = Type.GetTypeFromProgID( "esriDataSourcesOleDB.TextFileWorkspaceFactory"); IWorkspaceFactory workspaceFactory = (IWorkspaceFactory)Activator.CreateInstance (factoryType); // Open a directory of CSV files using its path. IWorkspace workspace = workspaceFactory.OpenFromFile(@C:\Data\CSV, 0); // Open a CSV file as a table. IFeatureWorkspace featureWorkspace = (IFeatureWorkspace)workspace; ITable table = featureWorkspace.OpenTable("Levee.csv");
Personally I would convert the text files to dBase or better still a GeoDatabase Table as then your data is in a Table which will make joining easier.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.