It would be great if there were an easy way to update the geometry of existing features in real time / after an edit is made.
It would be the equivalent of a DB trigger, but using logic similar to the Python field calculator script below:
#Updates the vertices of existing features
def new_shape(geom): spatial_reference = geom.spatialReference geom = geom.densify("ANGLE", 10000, 0.174533) parts = arcpy.Array() for i in range(geom.partCount): part = geom.getPart(i) points = arcpy.Array() for j in range(part.count): point = part.getObject(j) point.M = geom.measureOnLine(point) points.append(point) parts.append(points) return arcpy.Polyline(parts, spatial_reference)
Currently, there doesn't seem to be an easy way to do that in ArcGIS Pro, without customizing via a .NET add-in.
And unfortunately, it's not possible in the DB either, since the SDE.ST_GEOMETRY (Oracle) functions are too limited.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.