<?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 datasets and Shape_Area field in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454210#M15288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like this issue is not resolved for 10.5.1 too. I had to do the similar&amp;nbsp;thing of creating new field and calculating lengths. But its simpler to just get the attribute as is. I think ESRI has to look into fixing this, especially when in-memory is used for faster processing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2019 17:28:59 GMT</pubDate>
    <dc:creator>AbhijitRaikhelkar1</dc:creator>
    <dc:date>2019-01-30T17:28:59Z</dc:date>
    <item>
      <title>In-Memory datasets and Shape_Area field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454199#M15277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When creating an in-memory feature layers from the Dissolve tool, the resulting feature layer contains the fields Shape_Length and Shape_Area. However, the attributes in both these fields are null. However, if the Dissolve tool's output is a scratch geodatabase, these two fields are populated correctly. Why aren't these field populated for in-memory feature layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 20:12:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454199#M15277</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2010-12-15T20:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory datasets and Shape_Area field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454200#M15278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure as to the techincal reasonm why, but they aren't persisted in the in_memory workspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In v93 at least, if you copy an on-disk FGDB format feature class to the in_memory workspace (using&amp;nbsp; CopyFeatures), you will note the ABSENCE of the Shape_Area and/or Shape_Length fields. Maybe ESRI thought them a waste of space to store in RAM since you can easily recover them using the !SHAPE.area! and/or !SHAPE.length! properties?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you specifying the Shape_Area and Shape_Length fields as dissolve items? Not sure why they would be persisting the in_memory output...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 01:35:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454200#M15278</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2010-12-16T01:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory datasets and Shape_Area field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454201#M15279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm running a Dissolve (in ArcGIS 10) on a shapefile that doesn't contain the Shape_Area field and am selecting a text field for the dissolve item. It adds Shape_Length and Shape_Area fields to the resultant feature layer and I cannot do anything with those two fields (Delete, run the Field Calculator, or Calculate Geometry). When I export the in-memory feature layer to a shape files, both field are retained as Long fields with a value of 0.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 13:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454201#M15279</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2010-12-16T13:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory datasets and Shape_Area field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454202#M15280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ken,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I reproduced this behavior in v10 (doesn't happen in v9.3 BTW). Seems like a bug to me... In v9.3, this did not happen (bogus Shape_Area and Shape_Length fields being created and persisted for in_memory featureclasses when the input is a shapefile with no Shape_Area or Shape_Length fields).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This would be funny if it's true, but I actually might be partially to blame here since I submitted a bug to ESRI a long time ago (&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/content/nimbus-bug?bugID=TklNMDA2ODA5"&gt;http://resources.arcgis.com/content/nimbus-bug?bugID=TklNMDA2ODA5&lt;/A&gt;&lt;SPAN&gt;) complaining how the Shape_Area and Shape_Length fields were dropped (in v93) when a feature class was stored in_memory. This could very well be the bug "fix" - which of course is all fdup when using a shapefile as input. Funny what happens when you have non-GIS people programming GIS software...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 15:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454202#M15280</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2010-12-16T15:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory datasets and Shape_Area field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454203#M15281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ESRI has issued Bug NIM063795 about this behavior. It occurs when the background processing is enabled.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 10:12:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454203#M15281</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2010-12-23T10:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory datasets and Shape_Area field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454204#M15282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I encountered the same issue (discussed above) today and so developed the Python test script below to demonstrate it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you run it the expected result is to see the shape area figure printed 3 times but you only see it twice accompanied by the Python error below the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error is seen at ArcGIS 10.0 SP4 so I am hoping might be addressed by 10.1. Could someone with 10.1 Pre-release already installed perhaps run the test and see if the problem persists. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If in_memory workspaces work like this by design rather than oversight perhaps that can be documented in the &lt;/SPAN&gt;&lt;A href="http://resourcesbeta.arcgis.com/en/help/main/10.1/index.html#//002w0000005s000000" rel="nofollow noopener noreferrer" target="_blank"&gt;10.1 Online Help&lt;/A&gt;&lt;SPAN&gt; (that is now accessible via &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/" rel="nofollow noopener noreferrer" target="_blank"&gt;resources.esri.com&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my application I will be able to workaround it by using CopyFeatures_management to get the feature class back on disk before trying to access its Shape_Area but I'm iterating through 100+ feature classes so would have preferred not to lose that copying time. The in_memory is otherwise working very well to perform 100+ iterations of Intersect between the CopyFeatures to and now as a workaround from in_memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

if arcpy.Exists("C:/Temp/Test.gdb"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management("C:/Temp/Test.gdb")

if arcpy.Exists("in_memory"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management("in_memory")

arcpy.CreateFileGDB_management("C:/Temp","test","CURRENT")

arcpy.CreateFishnet_management("C:/Temp/test.gdb/fishnetPolys","0 0","0 1","1","1","1","1","#","NO_LABELS","#","POLYGON")

fcs = arcpy.SearchCursor("C:/Temp/test.gdb/fishnetPolys")
for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc.Shape_Area
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Above came from Shape_Area field of polygon on disk"
del fc,fcs

arcpy.CopyFeatures_management("C:/Temp/test.gdb/fishnetPolys","in_memory/fishnetPolysInMemory")

arcpy.CopyFeatures_management("in_memory/fishnetPolysInMemory","C:/Temp/test.gdb/fishnetPolysBackOnDisk")

fcs = arcpy.SearchCursor("C:/Temp/test.gdb/fishnetPolysBackOnDisk")
for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc.Shape_Area&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Above came from Shape_Area field of polygon copied from disk to in_memory and back to disk"
del fc,fcs

fcs = arcpy.SearchCursor("in_memory/fishnetPolysInMemory")
for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc.Shape_Area
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Above came from Shape_Area field of polygon copied from disk to in_memory - but you should see error trying to access it"
del fc,fcs&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;&amp;gt;&amp;gt;&amp;gt; ================================ RESTART ================================&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; &lt;BR /&gt;1.00024415553&lt;BR /&gt;Above came from Shape_Area field of polygon on disk&lt;BR /&gt;1.00024415553&lt;BR /&gt;Above came from Shape_Area field of polygon copied from disk to in_memory and back to disk&lt;BR /&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "C:/Organisations/Qld DERM/SHAPE_Area_bug.py", line 31, in &amp;lt;module&amp;gt;&lt;BR /&gt; print fc.Shape_Area&lt;BR /&gt; File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\arcobjects\_base.py", line 25, in __getattr__&lt;BR /&gt; x = getattr(self._arc_object, attr)&lt;BR /&gt;RuntimeError: Row: Field Shape_Area does not exist&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: Background processing is not involved when I see this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:15:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454204#M15282</guid>
      <dc:creator>GraemeBrowning</dc:creator>
      <dc:date>2021-12-11T20:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory datasets and Shape_Area field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454205#M15283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am seeing this problem in 10.1 too. Background processing appears to have no effect.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can take a feature class stored on disk, list its field to see "shape_length" then copy that feature class to in memory storage and list the fields again to find that "shape_length" is no longer there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To work around the problem I added my own shape_length field to the in memory feature class and calculated it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 17:10:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454205#M15283</guid>
      <dc:creator>GusMartinka</dc:creator>
      <dc:date>2012-06-21T17:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory datasets and Shape_Area field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454206#M15284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ESRI has issued Bug NIM063795 about this behavior. It occurs when the background processing is enabled.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Ken&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, for me it is not restricted to background geoprocessing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Graeme&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 22:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454206#M15284</guid>
      <dc:creator>GraemeBrowning</dc:creator>
      <dc:date>2012-06-21T22:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory datasets and Shape_Area field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454207#M15285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks Ken&lt;BR /&gt;&lt;BR /&gt;However, for me it is not restricted to background geoprocessing.&lt;BR /&gt;&lt;BR /&gt;- Graeme&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should contact Esri support to add this information to the bug.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 13:25:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454207#M15285</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-06-22T13:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory datasets and Shape_Area field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454208#M15286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still seeing this behavior at 10.3.1, doesn't seem like ESRI is going to fix it ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 12:09:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454208#M15286</guid>
      <dc:creator>BrandonFlessner</dc:creator>
      <dc:date>2015-10-01T12:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory datasets and Shape_Area field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454209#M15287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, its status is still "Open: Assigned". I would suggest contacting Esri support and adding your information to this bug. If more people complain about it, its priority will go up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 12:56:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454209#M15287</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-10-01T12:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory datasets and Shape_Area field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454210#M15288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like this issue is not resolved for 10.5.1 too. I had to do the similar&amp;nbsp;thing of creating new field and calculating lengths. But its simpler to just get the attribute as is. I think ESRI has to look into fixing this, especially when in-memory is used for faster processing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2019 17:28:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454210#M15288</guid>
      <dc:creator>AbhijitRaikhelkar1</dc:creator>
      <dc:date>2019-01-30T17:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory datasets and Shape_Area field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454211#M15289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the add geometry tool:&lt;/P&gt;&lt;P&gt;arcpy.AddGeometryAttributes_management("featureNeedsShape", "AREA")&lt;/P&gt;&lt;P&gt;This will add the field "POLY_AREA" to your in_memory feature.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/add-geometry-attributes.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/add-geometry-attributes.htm"&gt;Add Geometry Attributes (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2020 18:45:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/in-memory-datasets-and-shape-area-field/m-p/454211#M15289</guid>
      <dc:creator>ToddMorland1</dc:creator>
      <dc:date>2020-08-05T18:45:12Z</dc:date>
    </item>
  </channel>
</rss>

