<?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: Is it possible to replaceDataSource of layer with dataset stored in_memory? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/is-it-possible-to-replacedatasource-of-layer-with/m-p/290397#M22501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://ideas.arcgis.com/ideaView?id=08730000000bvUpAAI" rel="nofollow" target="_blank"&gt;ArcGIS Idea &lt;/A&gt;&lt;SPAN&gt;for this has now been submitted.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Feb 2012 01:33:07 GMT</pubDate>
    <dc:creator>GraemeBrowning</dc:creator>
    <dc:date>2012-02-27T01:33:07Z</dc:date>
    <item>
      <title>Is it possible to replaceDataSource of layer with dataset stored in_memory?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-replacedatasource-of-layer-with/m-p/290396#M22500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've enjoyed using in_memory workspaces to speed up some Python script tools that get published as Geoprocessing Services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The tools open MXDs and perform, among other things, an ExportToPDF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the MXD there is a layer that references a dataset stored on disk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At runtime a new dataset gets created with the same schema as that above but, given a choice, I would like that new dataset to ONLY be written to the in_memory workspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My testing suggests that using in_memory workspaces like this is not supported by either Layer.replaceDataSource or Layer.findAndReplaceWorkspacePath.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to replace the data souce of a layer with a feature class stored in the in_memory workspace so that it can be displayed in a map that gets exported to PDF before the in_memory workspace is deleted?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: After no responses here in first 12 hours or so I have also posted this to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://gis.stackexchange.com/questions/20329/is-it-possible-to-replacedatasource-of-layer-with-dataset-stored-in-memory-using" rel="nofollow" target="_blank"&gt;Stack Exchange GIS&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 08:52:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-replacedatasource-of-layer-with/m-p/290396#M22500</guid>
      <dc:creator>GraemeBrowning</dc:creator>
      <dc:date>2012-02-14T08:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to replaceDataSource of layer with dataset stored in_memory?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-replacedatasource-of-layer-with/m-p/290397#M22501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://ideas.arcgis.com/ideaView?id=08730000000bvUpAAI" rel="nofollow" target="_blank"&gt;ArcGIS Idea &lt;/A&gt;&lt;SPAN&gt;for this has now been submitted.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 01:33:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-replacedatasource-of-layer-with/m-p/290397#M22501</guid>
      <dc:creator>GraemeBrowning</dc:creator>
      <dc:date>2012-02-27T01:33:07Z</dc:date>
    </item>
  </channel>
</rss>

