AnsweredAssumed Answered

Flip Line Python script

Question asked by cgarcia_springdale on Jun 15, 2017
Latest reply on Jun 15, 2017 by Dan_Patterson
I have a shapefile with street centerlines with about 1600 segments that are flipped the wrong way.
I ran the Python code below and it worked but I need a way so that the address attributes do not
get flipped when the line is flipped. In the screen shot below you can see an example.
I need the centerline for Dee Ave to be flipped so that the red (to) and the green (from) swap
positions, which this script below did. The problem is that I do not want the address
attributes (1914,1915,1802,1803) to be flipped since they will then be in the wrong position,
I would need them to stay the way they are.



from arcpy import envenv.workspace="C:/data/project.gdb"inFeatures="streams"arcpy.FlipLine_edit(inFeatures)

I appreciate anyone's help! Thank you!

Outcomes