Skip to main content
4 events
when toggle format what by license comment
Feb 14, 2023 at 15:10 comment added bixb0012 @pmurbina87, you are getting that error because the UpdateCursor should be retrieving SHAPE@ and not SHAPE. The former is a token that retrieves an ArcPy Geometry object while the latter just retrieves an X,Y tuple of the geometry's centroid.
Dec 26, 2022 at 16:02 comment added MrShaggy87 It tells me that in line 24 ("area_ha = geom.area") there is an error: "AttributeError: 'tuple' object has no attribute 'area'
Dec 22, 2022 at 20:27 comment added Vince with only works with DA cursors (another reason to use them). Note that Polygon.area isn't going to be correct with a GCS coordinate reference, but Polygon.getArea() could be (with appropriate parameters).
Dec 22, 2022 at 20:23 history answered TreeGIS CC BY-SA 4.0