Skip to main content
3 of 8
added 30 characters in body; edited tags; added 15 characters in body
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Only densify polylines that have true curves

I am using ArcPy with ArcMap 10.7.1.

I want to densify SDE.ST_GEOMETRY polylines if (and only if) the polylines have true curves.

enter image description here

If I were using ArcPy with the latest version of ArcGIS Pro (instead of ArcMap), then I think the hasCurves property could be used like this:

for row in cursor:
    polyline = row[0]
    if polyline.hasCurves() == True:
        polyline = polyline.densify('ANGLE', 10, 0.174533) #radians

Unfortunately, the hasCurves property doesn't seem to be available for a Polyline in ArcMap 10.7.1.

#ArcPy/ArcMap 10.7.1

AttributeError: 'Polyline' object has no attribute 'hasCurves'              

In ArcMap 10.7.1, is there an alternative option for only densifying polylines that have true curves?

User1974
  • 1.3k
  • 16
  • 64