<?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: In_Memory or usage of a temporary layer for data in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/in-memory-or-usage-of-a-temporary-layer-for-data/m-p/1604798#M74022</link>
    <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/the-in-memory-workspace.htm" target="_blank" rel="noopener"&gt;Memory&lt;/A&gt; just works as if you were putting that file in a folder called memory.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_0-1744299246128.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129989iED4B947A3FEB2126/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_0-1744299246128.png" alt="AlfredBaldenweck_0-1744299246128.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.analysis.PairwiseBuffer(
    in_features=r"\\...\RLFO Boundary.lyrx",
    out_feature_class=r"memory\admu_ofc_poly__PairwiseBuffe",
    buffer_distance_or_field="10 Meters",
    dissolve_option="NONE",
    dissolve_field=None,
    method="GEODESIC",
    max_deviation="0 DecimalDegrees"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use it, it's typically like&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import os
aprx = arcpy.mp.ArcGISProject("CURRENT")
mp = aprx.activeMap
lays = mp.listLayers("Test*")
for lay in lays:
    buff = arcpy.analysis.PairwiseBuffer(
                 in_features=lay,
                 out_feature_class= os.path.join("memory", lay.name),
                 buffer_distance_or_field="10 Meters",
                 dissolve_option="NONE",
                 dissolve_field=None,
                 method="GEODESIC",
                 max_deviation="0 DecimalDegrees"
                 )
    #other steps
    #code
    #code
    arcpy.management.Delete(buff)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or if you're feeling lazy you can just not delete it and then close the project when you're done, where it'll then get deleted for you. That may cause performance issues if you have a ton of big stuff in there.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Apr 2025 15:42:35 GMT</pubDate>
    <dc:creator>AlfredBaldenweck</dc:creator>
    <dc:date>2025-04-10T15:42:35Z</dc:date>
    <item>
      <title>In_Memory or usage of a temporary layer for data</title>
      <link>https://community.esri.com/t5/python-questions/in-memory-or-usage-of-a-temporary-layer-for-data/m-p/1604700#M74019</link>
      <description>&lt;P&gt;Hello! I am currently working on a python script (isn't my own, just modifying for simlicity), and I am wanting to try and essentially create a temporary layer that another feature class can utilize for attributes and fields. I have a point layer that is being created for addresses within a half mile of feedlots, and with the original script, a line layer was also created to obtain distance information from the address points to the feedlots. The script uses the line layer to 'transfer' the line fields to the address's attributes, but I don't need the lines anymore. I want to try and make the line layer a temporary feature or layer that can be used to call back upon so that the address feature can still obtain the needed information. How would one go about this, and how does the In_Memory function(?) work?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 14:38:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/in-memory-or-usage-of-a-temporary-layer-for-data/m-p/1604700#M74019</guid>
      <dc:creator>GISIntern21</dc:creator>
      <dc:date>2025-04-10T14:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: In_Memory or usage of a temporary layer for data</title>
      <link>https://community.esri.com/t5/python-questions/in-memory-or-usage-of-a-temporary-layer-for-data/m-p/1604788#M74021</link>
      <description>&lt;P&gt;Cant you post what code you currently have?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 15:28:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/in-memory-or-usage-of-a-temporary-layer-for-data/m-p/1604788#M74021</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2025-04-10T15:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: In_Memory or usage of a temporary layer for data</title>
      <link>https://community.esri.com/t5/python-questions/in-memory-or-usage-of-a-temporary-layer-for-data/m-p/1604798#M74022</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/the-in-memory-workspace.htm" target="_blank" rel="noopener"&gt;Memory&lt;/A&gt; just works as if you were putting that file in a folder called memory.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_0-1744299246128.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129989iED4B947A3FEB2126/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_0-1744299246128.png" alt="AlfredBaldenweck_0-1744299246128.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.analysis.PairwiseBuffer(
    in_features=r"\\...\RLFO Boundary.lyrx",
    out_feature_class=r"memory\admu_ofc_poly__PairwiseBuffe",
    buffer_distance_or_field="10 Meters",
    dissolve_option="NONE",
    dissolve_field=None,
    method="GEODESIC",
    max_deviation="0 DecimalDegrees"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use it, it's typically like&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import os
aprx = arcpy.mp.ArcGISProject("CURRENT")
mp = aprx.activeMap
lays = mp.listLayers("Test*")
for lay in lays:
    buff = arcpy.analysis.PairwiseBuffer(
                 in_features=lay,
                 out_feature_class= os.path.join("memory", lay.name),
                 buffer_distance_or_field="10 Meters",
                 dissolve_option="NONE",
                 dissolve_field=None,
                 method="GEODESIC",
                 max_deviation="0 DecimalDegrees"
                 )
    #other steps
    #code
    #code
    arcpy.management.Delete(buff)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or if you're feeling lazy you can just not delete it and then close the project when you're done, where it'll then get deleted for you. That may cause performance issues if you have a ton of big stuff in there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 15:42:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/in-memory-or-usage-of-a-temporary-layer-for-data/m-p/1604798#M74022</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2025-04-10T15:42:35Z</dc:date>
    </item>
  </channel>
</rss>

