<?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: Join IN_MEMORY Table to FeatureClass in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/join-in-memory-table-to-featureclass/m-p/434133#M14619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should mark your own post as the answer. It makes it easier for someone looking for the correct answer to find your post. When doing a search, you're returned a list of threads, with the answered ones marked by a green "A". Wouldn't you look at those threads first?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2012 18:20:04 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2012-10-04T18:20:04Z</dc:date>
    <item>
      <title>Join IN_MEMORY Table to FeatureClass</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/join-in-memory-table-to-featureclass/m-p/434131#M14617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcGIS 9.3.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Python 2.5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a "IN_MEMORY" table verified by reviewing the gp.messaging:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;newrows = gp.searchcursor("IN_MEMORY\TempDT") newrow = newrows.next() while newrow: &amp;nbsp; gp.AddMessage("Inserted: " + str(newrow.gis_station) + ", " +&amp;nbsp; str(newrow.station) + ", "&amp;nbsp; + str(newrow.sample_date)&amp;nbsp;&amp;nbsp; &amp;nbsp; newrow = newrows.next()&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I'd like to join this with a FeatureClass in a PGDB.&amp;nbsp; I suppose that I will then have to issue a copyfeatures_management in order to see the result?&amp;nbsp; I really have no idea how else to see the joined FC in ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, there is no error, but the output doesn't inlcude the joined fields either so any help is appreciated:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; tab = "IN_MEMORY\TempDT" &amp;nbsp;&amp;nbsp;&amp;nbsp; memtabname = "inmemtab" &amp;nbsp;&amp;nbsp;&amp;nbsp; gp.MakeTableView_management(tab, memtabname) &amp;nbsp;&amp;nbsp;&amp;nbsp; gp.AddJoin_management(memtabname, "gis_station", fc, "STATION", "KEEP_ALL") &amp;nbsp;&amp;nbsp;&amp;nbsp; gp.copyfeatures_management(fc, tempFC)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 14:56:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/join-in-memory-table-to-featureclass/m-p/434131#M14617</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2012-10-04T14:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Join IN_MEMORY Table to FeatureClass</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/join-in-memory-table-to-featureclass/m-p/434132#M14618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not going to mark my own post as the answer, but should someone need to do this the solution is to use the TableView and FeatureLayer object instead of the objects themselves (from what I can tell anyway).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;tab = "IN_MEMORY\TempDT" gp.MakeFeatureLayer_management (fc, "pointFC") ### convert the FC memtabname = "inmemtab" gp.MakeTableView_management("IN_MEMORY\TempDT", memtabname)&amp;nbsp; ### convert the in_memory table&amp;nbsp; gp.AddJoin_management("pointFC", "STATION", memtabname, "gis_station", "KEEP_ALL")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if gp.Exists(tmpLayer): &amp;nbsp;&amp;nbsp; gp.Delete_management(tmpLayer) &amp;nbsp;&amp;nbsp; gp.CopyFeatures_management("pointFC", tmpLayer)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(tmpLayer is a .shp file that I save to the user's local drive and tab was generated by filling a cursor from a cx_Oracle.connect call)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 17:56:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/join-in-memory-table-to-featureclass/m-p/434132#M14618</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2012-10-04T17:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Join IN_MEMORY Table to FeatureClass</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/join-in-memory-table-to-featureclass/m-p/434133#M14619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should mark your own post as the answer. It makes it easier for someone looking for the correct answer to find your post. When doing a search, you're returned a list of threads, with the answered ones marked by a green "A". Wouldn't you look at those threads first?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 18:20:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/join-in-memory-table-to-featureclass/m-p/434133#M14619</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-10-04T18:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Join IN_MEMORY Table to FeatureClass</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/join-in-memory-table-to-featureclass/m-p/434134#M14620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You should mark your own post as the answer. It makes it easier for someone looking for the correct answer to find your post. When doing a search, you're returned a list of threads, with the answered ones marked by a green "A". Wouldn't you look at those threads first?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay will do...&amp;nbsp; Done!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 18:47:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/join-in-memory-table-to-featureclass/m-p/434134#M14620</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2012-10-04T18:47:19Z</dc:date>
    </item>
  </channel>
</rss>

