0

I have a small problem which I have been fighting to solve but in vain.

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.

Please suggest me how to get solution. I tried to delete middle vertices still I find wrong distance. Think that wanna to rebuild/repair the geometry, I am not sure.

Thanks and appreciate your help!

  • Welcome to GIS SE, can you post a portion of your script so we can see how you are calculating your distance? – artwork21 Feb 15 '14 at 15:55
1

One possible reason for your error could be the fact that your edit is not saved when you compute the full length. Otherwise you should have the new length and the new "end" from your script.

If this is not the case and you want to get rid of your extra vertices (because your script is based on a count of the vertices, for instance), you can use simplify your lines with "point remove" and a very small tolerance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.