I amI'm using ArcPy with ArcMap 10.7.1.
I want to densify SDE.ST_GEOMETRY polylines if (and only if) the polylines have true curves.
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 determining if polylines have true curves?
Edit:
The WKT property sounds like it might do what I want:
ArcMap 10.7.1 Polyline --> WKT attribute
Returns the well-known text (WKT) representation for OGC geometry. It provides a portable representation of a geometry value as a text string.
Any true curves in the geometry will be densified into approximate curves in the WKT string.
That sounds promising, but I don't know if there is a clean way to convert the WKT back to a geometry or not. Or if there would be downsides/risks to converting to WKT. In this case, maintaining the topological correctness of the lines (sewers) is very important.