Initially I generated some polylines across the river at various locations. I found some of them are smaller in size and not fitting the river width, Therefore, I edited those using advanced editing tool by using extend polyline tool. However,I did not have knowledge that extending would create one more vertex in the middle.
When I am computing distance using my script, the script is calculating distance between two earlier vertices it did not consider the another end vertices to compute the x,y of the actual end point of the modified lines.
How can I solve this?
I tried to delete middle vertices still I find wrong distance. I think that I may need to rebuild/repair the geometry, but I am not sure.