Skip to main content
2 of 8
edited title
User1974
  • 1.3k
  • 16
  • 64

Only densify polylines that have true curves

ArcPy/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 the latest version of ArcPy/ArcGIS Pro, 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 in ArcMap 10.7.1.

#ArcPy/ArcMap 10.7.1

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

Question:

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

User1974
  • 1.3k
  • 16
  • 64