I want to flip the direction of a polyline feature obtained as a result of an Update query; e.g.
lines= arcpy.UpdateCursor(myFeatureClass,myQuery) dsc= arcpy.Describe(myFeatureClass) try: for ln in lines: # ? Check number of parts # ? Flip direction of each, or some of the parts lines.updateRow(ln) except: print "Error:", sys.exc_info() finally: # releasing locks if lines: del lines if ln: del ln
BTW, any better way to know how many rows are returned than counting them?