<?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 Calculate Geometry Attributes with Specific Decimal Points in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103530#M46182</link>
    <description>&lt;P&gt;I am using ArcGIS Pro 2.8.2 Model Builder. I have been working on a model that makes a feature layer based on a selection criteria then calculates the geometry attributes of that feature layer's acreage field.&amp;nbsp; The only problem I am facing now is that when I check the feature class and the newly calculated acreage, it is a decimal with 6 decimal places.&amp;nbsp; I need this to be 2 decimal places.&amp;nbsp; Any suggestions on how to accomplish this?&amp;nbsp; Any help will be greatly appreciated! See the model's python code below.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# -*- coding: utf-8 -*-
"""
Generated by ArcGIS ModelBuilder on : 2021-09-30 10:58:27
"""
import arcpy

def GeometryCalc():  # GeometryCalc

    # To allow overwriting outputs change overwriteOutput option to True.
    arcpy.env.overwriteOutput = False

    arcpy.ImportToolbox(r"c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Data Management Tools.tbx")
    # Model Environment settings
    with arcpy.EnvManager(scratchWorkspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp10544\1ba0f558-c873-4c6c-be6d-dc08393016c0\Default.gdb", workspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp10544\1ba0f558-c873-4c6c-be6d-dc08393016c0\Default.gdb"):
        mcpagis_DBO_Parcels = "K:\\GIS_TOOLS\\DB\\merlin.sde\\mcpagis.DBO.Cadastre__Features\\mcpagis.DBO.Parcels"

        # Process: Make Feature Layer (Make Feature Layer) (management)
        DBO_Parcels_Layer = "DBO.Parcels_Layer"
        with arcpy.EnvManager(scratchWorkspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp8392\0686a1b7-5a62-4965-97f7-463b179295c6\Default.gdb", workspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp8392\0686a1b7-5a62-4965-97f7-463b179295c6\Default.gdb"):
            arcpy.management.MakeFeatureLayer(in_features=mcpagis_DBO_Parcels, out_layer=DBO_Parcels_Layer, where_clause="GIS_ACRES = 0 Or GIS_ACRES IS NULL", workspace="", field_info="OBJECTID OBJECTID VISIBLE NONE;PARCEL PARCEL VISIBLE NONE;PREFIX PREFIX VISIBLE NONE;SUFFIX1 SUFFIX1 VISIBLE NONE;SUFFIX2 SUFFIX2 VISIBLE NONE;GIS_ACRES GIS_ACRES VISIBLE NONE;KIND KIND VISIBLE NONE;ANGLE ANGLE VISIBLE NONE;SIZE_ SIZE_ VISIBLE NONE;DATE_CREATED DATE_CREATED VISIBLE NONE;DATE_UPDATED DATE_UPDATED VISIBLE NONE;SHAPE SHAPE VISIBLE NONE;SHAPE.area SHAPE.area VISIBLE NONE;SHAPE.len SHAPE.len VISIBLE NONE")

        # Process: Calculate Geometry Attributes (Calculate Geometry Attributes) (management)
        with arcpy.EnvManager(scratchWorkspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp8392\0686a1b7-5a62-4965-97f7-463b179295c6\Default.gdb", workspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp8392\0686a1b7-5a62-4965-97f7-463b179295c6\Default.gdb"):
            DBO_Parcels_Layer_2_ = arcpy.management.CalculateGeometryAttributes(in_features=DBO_Parcels_Layer, geometry_property=[["GIS_ACRES", "AREA"]], length_unit="", area_unit="ACRES", coordinate_system="PROJCS[\"NAD_1983_StatePlane_Florida_West_FIPS_0902_Feet\",GEOGCS[\"GCS_North_American_1983\",DATUM[\"D_North_American_1983\",SPHEROID[\"GRS_1980\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",656166.6666666665],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",-82.0],PARAMETER[\"Scale_Factor\",0.9999411764705882],PARAMETER[\"Latitude_Of_Origin\",24.33333333333333],UNIT[\"Foot_US\",0.3048006096012192]]", coordinate_format="SAME_AS_INPUT")[0]

if __name__ == '__main__':
    GeometryCalc()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 15:17:39 GMT</pubDate>
    <dc:creator>ABishop</dc:creator>
    <dc:date>2021-09-30T15:17:39Z</dc:date>
    <item>
      <title>Calculate Geometry Attributes with Specific Decimal Points</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103530#M46182</link>
      <description>&lt;P&gt;I am using ArcGIS Pro 2.8.2 Model Builder. I have been working on a model that makes a feature layer based on a selection criteria then calculates the geometry attributes of that feature layer's acreage field.&amp;nbsp; The only problem I am facing now is that when I check the feature class and the newly calculated acreage, it is a decimal with 6 decimal places.&amp;nbsp; I need this to be 2 decimal places.&amp;nbsp; Any suggestions on how to accomplish this?&amp;nbsp; Any help will be greatly appreciated! See the model's python code below.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# -*- coding: utf-8 -*-
"""
Generated by ArcGIS ModelBuilder on : 2021-09-30 10:58:27
"""
import arcpy

def GeometryCalc():  # GeometryCalc

    # To allow overwriting outputs change overwriteOutput option to True.
    arcpy.env.overwriteOutput = False

    arcpy.ImportToolbox(r"c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Data Management Tools.tbx")
    # Model Environment settings
    with arcpy.EnvManager(scratchWorkspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp10544\1ba0f558-c873-4c6c-be6d-dc08393016c0\Default.gdb", workspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp10544\1ba0f558-c873-4c6c-be6d-dc08393016c0\Default.gdb"):
        mcpagis_DBO_Parcels = "K:\\GIS_TOOLS\\DB\\merlin.sde\\mcpagis.DBO.Cadastre__Features\\mcpagis.DBO.Parcels"

        # Process: Make Feature Layer (Make Feature Layer) (management)
        DBO_Parcels_Layer = "DBO.Parcels_Layer"
        with arcpy.EnvManager(scratchWorkspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp8392\0686a1b7-5a62-4965-97f7-463b179295c6\Default.gdb", workspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp8392\0686a1b7-5a62-4965-97f7-463b179295c6\Default.gdb"):
            arcpy.management.MakeFeatureLayer(in_features=mcpagis_DBO_Parcels, out_layer=DBO_Parcels_Layer, where_clause="GIS_ACRES = 0 Or GIS_ACRES IS NULL", workspace="", field_info="OBJECTID OBJECTID VISIBLE NONE;PARCEL PARCEL VISIBLE NONE;PREFIX PREFIX VISIBLE NONE;SUFFIX1 SUFFIX1 VISIBLE NONE;SUFFIX2 SUFFIX2 VISIBLE NONE;GIS_ACRES GIS_ACRES VISIBLE NONE;KIND KIND VISIBLE NONE;ANGLE ANGLE VISIBLE NONE;SIZE_ SIZE_ VISIBLE NONE;DATE_CREATED DATE_CREATED VISIBLE NONE;DATE_UPDATED DATE_UPDATED VISIBLE NONE;SHAPE SHAPE VISIBLE NONE;SHAPE.area SHAPE.area VISIBLE NONE;SHAPE.len SHAPE.len VISIBLE NONE")

        # Process: Calculate Geometry Attributes (Calculate Geometry Attributes) (management)
        with arcpy.EnvManager(scratchWorkspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp8392\0686a1b7-5a62-4965-97f7-463b179295c6\Default.gdb", workspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp8392\0686a1b7-5a62-4965-97f7-463b179295c6\Default.gdb"):
            DBO_Parcels_Layer_2_ = arcpy.management.CalculateGeometryAttributes(in_features=DBO_Parcels_Layer, geometry_property=[["GIS_ACRES", "AREA"]], length_unit="", area_unit="ACRES", coordinate_system="PROJCS[\"NAD_1983_StatePlane_Florida_West_FIPS_0902_Feet\",GEOGCS[\"GCS_North_American_1983\",DATUM[\"D_North_American_1983\",SPHEROID[\"GRS_1980\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",656166.6666666665],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",-82.0],PARAMETER[\"Scale_Factor\",0.9999411764705882],PARAMETER[\"Latitude_Of_Origin\",24.33333333333333],UNIT[\"Foot_US\",0.3048006096012192]]", coordinate_format="SAME_AS_INPUT")[0]

if __name__ == '__main__':
    GeometryCalc()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:17:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103530#M46182</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-09-30T15:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry Attributes with Specific Decimal Points</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103537#M46184</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/486546"&gt;@ABishop&lt;/a&gt;&amp;nbsp;does the following guide help?&amp;nbsp;&lt;A href="https://support.esri.com/en/technical-article/000025170" target="_blank"&gt;https://support.esri.com/en/technical-article/000025170&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:22:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103537#M46184</guid>
      <dc:creator>David_Brooks</dc:creator>
      <dc:date>2021-09-30T15:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry Attributes with Specific Decimal Points</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103540#M46185</link>
      <description>&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;I am aware you can set the field properties to display the acreage field with two decimals and also do this with labeling functions, but that does not change the raw data.&amp;nbsp; I need the raw data that is calculated by the model to produce the output with two decimal places.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:25:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103540#M46185</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-09-30T15:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry Attributes with Specific Decimal Points</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103542#M46186</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/486546"&gt;@ABishop&lt;/a&gt;&amp;nbsp;but the Round() function will round your result to N decimal places.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103542#M46186</guid>
      <dc:creator>David_Brooks</dc:creator>
      <dc:date>2021-09-30T15:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry Attributes with Specific Decimal Points</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103546#M46187</link>
      <description>&lt;P&gt;Where would you insert that in the model python code?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:28:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103546#M46187</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-09-30T15:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry Attributes with Specific Decimal Points</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103562#M46189</link>
      <description>&lt;P&gt;like this at the end?&lt;/P&gt;&lt;P&gt;round(DBO_Parcels_Layer_2_, 2)?&amp;nbsp; At the end of the script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:41:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103562#M46189</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-09-30T15:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry Attributes with Specific Decimal Points</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103564#M46190</link>
      <description>&lt;P&gt;or....&lt;/P&gt;&lt;P&gt;round(DBO_Parcels_Layer, 2) ??&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:43:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103564#M46190</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-09-30T15:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry Attributes with Specific Decimal Points</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103572#M46192</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/486546"&gt;@ABishop&lt;/a&gt;&amp;nbsp;im not entirely sure if you can add that into the calc geometry process directly, but you could add a field calculator process after this and just state that:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DBO_Parcels_Layer = round(DBO_Parcels_Layer, 2)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:47:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103572#M46192</guid>
      <dc:creator>David_Brooks</dc:creator>
      <dc:date>2021-09-30T15:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry Attributes with Specific Decimal Points</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103577#M46193</link>
      <description>&lt;P&gt;OK... I think I know what you are suggesting... I put it in the code below.&amp;nbsp; I apologize but I am not a pro at programming... Can you check it out and let me know if this is accurate?&amp;nbsp; If I am missing something?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# -*- coding: utf-8 -*-
"""
Generated by ArcGIS ModelBuilder on : 2021-09-30 10:58:27
"""
import arcpy

def GeometryCalc():  # GeometryCalc

    # To allow overwriting outputs change overwriteOutput option to True.
    arcpy.env.overwriteOutput = False

    arcpy.ImportToolbox(r"c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Data Management Tools.tbx")
    # Model Environment settings
    with arcpy.EnvManager(scratchWorkspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp10544\1ba0f558-c873-4c6c-be6d-dc08393016c0\Default.gdb", workspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp10544\1ba0f558-c873-4c6c-be6d-dc08393016c0\Default.gdb"):
        mcpagis_DBO_Parcels = "K:\\GIS_TOOLS\\DB\\merlin.sde\\mcpagis.DBO.Cadastre__Features\\mcpagis.DBO.Parcels"

        # Process: Make Feature Layer (Make Feature Layer) (management)
        DBO_Parcels_Layer = "DBO.Parcels_Layer"
        with arcpy.EnvManager(scratchWorkspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp8392\0686a1b7-5a62-4965-97f7-463b179295c6\Default.gdb", workspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp8392\0686a1b7-5a62-4965-97f7-463b179295c6\Default.gdb"):
            arcpy.management.MakeFeatureLayer(in_features=mcpagis_DBO_Parcels, out_layer=DBO_Parcels_Layer, where_clause="GIS_ACRES = 0 Or GIS_ACRES IS NULL", workspace="", field_info="OBJECTID OBJECTID VISIBLE NONE;PARCEL PARCEL VISIBLE NONE;PREFIX PREFIX VISIBLE NONE;SUFFIX1 SUFFIX1 VISIBLE NONE;SUFFIX2 SUFFIX2 VISIBLE NONE;GIS_ACRES GIS_ACRES VISIBLE NONE;KIND KIND VISIBLE NONE;ANGLE ANGLE VISIBLE NONE;SIZE_ SIZE_ VISIBLE NONE;DATE_CREATED DATE_CREATED VISIBLE NONE;DATE_UPDATED DATE_UPDATED VISIBLE NONE;SHAPE SHAPE VISIBLE NONE;SHAPE.area SHAPE.area VISIBLE NONE;SHAPE.len SHAPE.len VISIBLE NONE")

        # Process: Calculate Geometry Attributes (Calculate Geometry Attributes) (management)
        with arcpy.EnvManager(scratchWorkspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp8392\0686a1b7-5a62-4965-97f7-463b179295c6\Default.gdb", workspace=r"C:\Users\abishop\AppData\Local\Temp\ArcGISProTemp8392\0686a1b7-5a62-4965-97f7-463b179295c6\Default.gdb"):
            DBO_Parcels_Layer_2_ = arcpy.management.CalculateGeometryAttributes(in_features=DBO_Parcels_Layer, geometry_property=[["GIS_ACRES", "AREA"]], length_unit="", area_unit="ACRES", coordinate_system="PROJCS[\"NAD_1983_StatePlane_Florida_West_FIPS_0902_Feet\",GEOGCS[\"GCS_North_American_1983\",DATUM[\"D_North_American_1983\",SPHEROID[\"GRS_1980\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",656166.6666666665],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",-82.0],PARAMETER[\"Scale_Factor\",0.9999411764705882],PARAMETER[\"Latitude_Of_Origin\",24.33333333333333],UNIT[\"Foot_US\",0.3048006096012192]]", coordinate_format="SAME_AS_INPUT")[0]
            
        # Process: round acreage 
        with DBO_Parcels_Layer = round(DBO_Parcels_Layer, 2)

if __name__ == '__main__':
    GeometryCalc()
    &lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103577#M46193</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-09-30T15:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry Attributes with Specific Decimal Points</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103626#M46202</link>
      <description>&lt;P&gt;or something like this at the end?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;round(DBO_Parcels_Layer_2.GIS_ACRES, 2)&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 17:15:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-specific/m-p/1103626#M46202</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-09-30T17:15:16Z</dc:date>
    </item>
  </channel>
</rss>

