Skip to main content
English usage; naming
Source Link
Vince
  • 20.3k
  • 16
  • 48
  • 65

calculate Calculate geometry with pythonPython?

ImI'm trying to calculate geometry in pythonPython for a script tool for arcmapArcMap.

For the script iI want to calculate area in hectares. I am trying to use the add geometry attribute (data management) tool, but itsit's not working and itsit's giving me all 0'szeros in my output field. thisThis is what I have:

# Set Calculate geometry variables

calculate_table = clip_output

geometry_prop = "AREA"

expression = "HECTARES"

# Run calculate geometry

arcpy.AddGeometryAttributes_management(calculate_table, geometry_prop, "", expression, "")

whatsWhat's wrong? should iShould I use a different tool?

calculate geometry with python?

Im trying to calculate geometry in python for a script tool for arcmap.

For the script i want to calculate area in hectares. I am trying to use the add geometry attribute (data management) tool, but its not working and its giving me all 0's in my output field. this is what I have:

# Set Calculate geometry variables

calculate_table = clip_output

geometry_prop = "AREA"

expression = "HECTARES"

# Run calculate geometry

arcpy.AddGeometryAttributes_management(calculate_table, geometry_prop, "", expression, "")

whats wrong? should i use a different tool?

Calculate geometry with Python?

I'm trying to calculate geometry in Python for a script tool for ArcMap.

For the script I want to calculate area in hectares. I am trying to use the add geometry attribute (data management) tool, but it's not working and it's giving me all zeros in my output field. This is what I have:

# Set Calculate geometry variables

calculate_table = clip_output

geometry_prop = "AREA"

expression = "HECTARES"

# Run calculate geometry

arcpy.AddGeometryAttributes_management(calculate_table, geometry_prop, "", expression, "")

What's wrong? Should I use a different tool?

Tags and code formatting
Source Link
user2856
  • 69.6k
  • 6
  • 119
  • 203

Im trying to calculate geometry in python for a script tool for arcmap.

For the script i want to calculate area in hectares. I am trying to use the add geometry attribute (data management) tool, but its not working and its giving me all 0's in my output field. this is what I have:

Set Calculate geometry variables

# Set Calculate geometry variables

calculate_table = clip_output

geometry_prop = "AREA"

expression = "HECTARES"

Run calculate geometry


# Run calculate geometry

arcpy.AddGeometryAttributes_management(calculate_table, geometry_prop, "", expression, "")

whats wrong? should i use a different tool?

Im trying to calculate geometry in python for a script tool for arcmap.

For the script i want to calculate area in hectares. I am trying to use the add geometry attribute (data management) tool, but its not working and its giving me all 0's in my output field. this is what I have:

Set Calculate geometry variables

calculate_table = clip_output

geometry_prop = "AREA"

expression = "HECTARES"

Run calculate geometry

arcpy.AddGeometryAttributes_management(calculate_table, geometry_prop, "", expression, "")

whats wrong? should i use a different tool?

Im trying to calculate geometry in python for a script tool for arcmap.

For the script i want to calculate area in hectares. I am trying to use the add geometry attribute (data management) tool, but its not working and its giving me all 0's in my output field. this is what I have:

# Set Calculate geometry variables

calculate_table = clip_output

geometry_prop = "AREA"

expression = "HECTARES"

# Run calculate geometry

arcpy.AddGeometryAttributes_management(calculate_table, geometry_prop, "", expression, "")

whats wrong? should i use a different tool?

highlight code and click on the curly brackets
Source Link

Im trying to calculate geometry in python for a script tool for arcmap.

For the script i want to calculate area in hectares. I am trying to use the add geometry attribute (data management) tool, but its not working and its giving me all 0's in my output field. this is what I have:

Set Calculate geometry variables

calculate_table = clip_output

geometry_prop = "AREA"

expression = "HECTARES"

calculate_table = clip_output

geometry_prop = "AREA"

expression = "HECTARES"

Run calculate geometry

arcpy.AddGeometryAttributes_management(calculate_table, geometry_prop, "", expression, "")

arcpy.AddGeometryAttributes_management(calculate_table, geometry_prop, "", expression, "")

whats wrong? should i use a different tool?

Im trying to calculate geometry in python for a script tool for arcmap.

For the script i want to calculate area in hectares. I am trying to use the add geometry attribute (data management) tool, but its not working and its giving me all 0's in my output field. this is what I have:

Set Calculate geometry variables

calculate_table = clip_output

geometry_prop = "AREA"

expression = "HECTARES"

Run calculate geometry

arcpy.AddGeometryAttributes_management(calculate_table, geometry_prop, "", expression, "")

whats wrong? should i use a different tool?

Im trying to calculate geometry in python for a script tool for arcmap.

For the script i want to calculate area in hectares. I am trying to use the add geometry attribute (data management) tool, but its not working and its giving me all 0's in my output field. this is what I have:

Set Calculate geometry variables

calculate_table = clip_output

geometry_prop = "AREA"

expression = "HECTARES"

Run calculate geometry

arcpy.AddGeometryAttributes_management(calculate_table, geometry_prop, "", expression, "")

whats wrong? should i use a different tool?

Source Link
Loading