<?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: Shape_Area/Shape_Length fields on PostgreSQL in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1646011#M42946</link>
    <description>&lt;P&gt;Like&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/567"&gt;@George_Thompson&lt;/a&gt;&amp;nbsp;said, those names cannot be renamed. However, when it comes to using any programming language, you can create a dictionary of mapped field names. For example ( { &lt;SPAN&gt;Shape_Area:&amp;nbsp;ST_AREA } ) so &lt;/SPAN&gt;when you change data sources you can get the equivalent field that you need and vice versa.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Aug 2025 11:22:57 GMT</pubDate>
    <dc:creator>RPGIS</dc:creator>
    <dc:date>2025-08-27T11:22:57Z</dc:date>
    <item>
      <title>Shape_Area/Shape_Length fields on PostgreSQL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1645967#M42939</link>
      <description>&lt;P&gt;I try to append data using Arcpy and sometimes, I lose geometry due to different data map. On GDB it's Shape_Area. On SDE it's ST_AREA(SHAPE). Can I rename it so I would always have same field names, if not why?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 07:08:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1645967#M42939</guid>
      <dc:creator>MariusBartašius</dc:creator>
      <dc:date>2025-08-27T07:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Shape_Area/Shape_Length fields on PostgreSQL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1645999#M42941</link>
      <description>&lt;P&gt;Here is some additional information on those fields. They are system generated and maintained:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/appendices/geoprocessing-considerations-for-shapefile-output.htm#ESRI_SECTION1_0125A6BC969E486B9470F55825EC6C62" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/appendices/geoprocessing-considerations-for-shapefile-output.htm#ESRI_SECTION1_0125A6BC969E486B9470F55825EC6C62&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/why-are-there-differences-in-the-shape-area-and-shape-l-000011203" target="_blank"&gt;https://support.esri.com/en-us/knowledge-base/why-are-there-differences-in-the-shape-area-and-shape-l-000011203&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So the name cannot be changed.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 09:49:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1645999#M42941</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2025-08-27T09:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Shape_Area/Shape_Length fields on PostgreSQL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1646011#M42946</link>
      <description>&lt;P&gt;Like&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/567"&gt;@George_Thompson&lt;/a&gt;&amp;nbsp;said, those names cannot be renamed. However, when it comes to using any programming language, you can create a dictionary of mapped field names. For example ( { &lt;SPAN&gt;Shape_Area:&amp;nbsp;ST_AREA } ) so &lt;/SPAN&gt;when you change data sources you can get the equivalent field that you need and vice versa.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 11:22:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1646011#M42946</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-08-27T11:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Shape_Area/Shape_Length fields on PostgreSQL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1646050#M42953</link>
      <description>&lt;P&gt;I also found this to be a bit frustrating, it's even different between SQL Server enterprise gdb using ST_Geometry,&amp;nbsp;&lt;STRONG&gt;Shape.STArea(),&lt;/STRONG&gt; vs Postgres enterprise gdb&amp;nbsp;using ST_Geometry, &lt;STRONG&gt;st_area(shape)&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the SQL Server or Postgres databases, &lt;STRONG&gt;Shape&amp;nbsp;&lt;/STRONG&gt;is a single geometry field, so it seems confounding why ArcGIS desktop must 'interpret' the shape area/length meta-field names in different ways between file geodatabases, and enterprise geodatabases of different underlying db type. I'd be curious about the explanation for that if there is one.&lt;/P&gt;&lt;P data-unlink="true"&gt;Using python arcpy cursor methods, you can refer to all of these the same standardized way with the '&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/reading-geometries.htm" target="_self"&gt;geometry tokens&lt;/A&gt;' SHAPE@, or more specific SHAPE@AREA,&amp;nbsp;&amp;nbsp;SHAPE@XY,&amp;nbsp;&amp;nbsp;SHAPE@LENGTH, &amp;nbsp;etc.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 13:32:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1646050#M42953</guid>
      <dc:creator>CalvinHarmin</dc:creator>
      <dc:date>2025-08-27T13:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Shape_Area/Shape_Length fields on PostgreSQL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1646240#M42956</link>
      <description>&lt;P&gt;As I understand it, there are "auto-generated" fields by the software. If you need "true" calculations I would look at having a specific field and use this tool:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-geometry-attributes.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-geometry-attributes.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 19:29:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1646240#M42956</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2025-08-27T19:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Shape_Area/Shape_Length fields on PostgreSQL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1646263#M42957</link>
      <description>&lt;P&gt;I get that it's autogenerated, but it seems quite arbitrary to have the field names be different depending on the *gdb source, since there is not an actual column named &lt;EM&gt;st_area(shape)&lt;/EM&gt; in the postgres database, for example. When using ST_geometry for the feature class in the egdb, the geometry is stored in the &lt;STRONG&gt;shape&lt;/STRONG&gt; column in postgres in a well-known-binary format, if I understand correctly, so I assume that is being interpreted by ArcGIS software, so why not have the software display the polygon geometry in a field simply named&amp;nbsp;&lt;STRONG&gt;shape_area&lt;/STRONG&gt; the same way that a file geodatabase displays it?&lt;/P&gt;&lt;P&gt;I'm not expecting you to have the answer, but I'm still throwing it out to the universe since I expect there is a good reason, and I'm just curious what's going on under the hood.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 20:33:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1646263#M42957</guid>
      <dc:creator>CalvinHarmin</dc:creator>
      <dc:date>2025-08-27T20:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Shape_Area/Shape_Length fields on PostgreSQL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1646394#M42960</link>
      <description>&lt;P&gt;Good question as to the "why", unfortunately I am not sure. I know that this behavior has been around for a while 15+ years I have been at this.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 10:23:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1646394#M42960</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2025-08-28T10:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Shape_Area/Shape_Length fields on PostgreSQL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1646470#M42962</link>
      <description>&lt;P&gt;As someone who also does SQL querying in SQL server you can rename a shape field to any name you want in SQL. As to why the default is what it is nobody truly knows. My only thoughts are that it is the variation in database types since SQL has mulitple variants such as PostgreSQL, MySQL, OracleSQL, and SQL Server. I think geodatabases are a stem of what are considered Microsoft Access Databases but are created to have local shapefields.&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/115671"&gt;@CalvinHarmin&lt;/a&gt;&amp;nbsp;pointed out, using the SHAPE@ should be used in python since I believe it is catchall regarding any shape field.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 14:57:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/shape-area-shape-length-fields-on-postgresql/m-p/1646470#M42962</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-08-28T14:57:10Z</dc:date>
    </item>
  </channel>
</rss>

