<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Joining a text file to a Feature Class in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/joining-a-text-file-to-a-feature-class/m-p/642749#M17306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2012 13:31:19 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2012-06-20T13:31:19Z</dc:date>
    <item>
      <title>Joining a text file to a Feature Class</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/joining-a-text-file-to-a-feature-class/m-p/642748#M17305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way using Arcobjects where I can join a text file to a feature class using a common id filed so all the attributes on the text file are copied to their corresponding fields on the Feature Class? I will highly appreciate if any code example can be provided. We are getting data from different sources and some of these data are in text file format which we need to batch copy to their corresponding feature classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AlHinai&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 06:20:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/joining-a-text-file-to-a-feature-class/m-p/642748#M17305</guid>
      <dc:creator>Almuatasim_Ahmed_SaidAl-Hinai</dc:creator>
      <dc:date>2012-06-20T06:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Joining a text file to a Feature Class</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/joining-a-text-file-to-a-feature-class/m-p/642749#M17306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 13:31:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/joining-a-text-file-to-a-feature-class/m-p/642749#M17306</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2012-06-20T13:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Joining a text file to a Feature Class</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/joining-a-text-file-to-a-feature-class/m-p/642750#M17307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;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.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Hornbydd for reply. Yes you are right but I asked to join text files to FC&amp;nbsp; only because we want to build an application to batch join text files that we are having to their related Feature classes. Yes another way might be build a routine to convert these text files to Dbase format and then batch joining them to their related feature classes. It will be good if someone can assist us in applying the later concept &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 15:01:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/joining-a-text-file-to-a-feature-class/m-p/642750#M17307</guid>
      <dc:creator>Almuatasim_Ahmed_SaidAl-Hinai</dc:creator>
      <dc:date>2012-06-20T15:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Joining a text file to a Feature Class</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/joining-a-text-file-to-a-feature-class/m-p/642751#M17308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/TextFileWorkspaceFactoryClass_Class/001p0000000r000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;TextFileWorkspaceFactory &lt;/A&gt;&lt;SPAN&gt;coclass.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Small code example taken from the assemblies overview: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// Create a text file workspace factory.
Type factoryType = Type.GetTypeFromProgID(
&amp;nbsp;&amp;nbsp;&amp;nbsp; "esriDataSourcesOleDB.TextFileWorkspaceFactory");
IWorkspaceFactory workspaceFactory = (IWorkspaceFactory)Activator.CreateInstance
&amp;nbsp;&amp;nbsp;&amp;nbsp; (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");&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:19:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/joining-a-text-file-to-a-feature-class/m-p/642751#M17308</guid>
      <dc:creator>JohnHauck</dc:creator>
      <dc:date>2021-12-12T03:19:22Z</dc:date>
    </item>
  </channel>
</rss>

