1

I have a problem with Extend Line tool in ArcPy, it cannot extend some lines, i tried to get around by erasing the edges of lines that i want to extend without failure, but despite this some fewer lines remains not extended to any feature in the same layer.

an example of Extend commande

arcpy.ExtendLine_edit("Line_fc" , "", "FEATURE")
  • 1
    Have you checked the last 2 nodes of the lines that are not extending? Sometimes it will have a "jog" or "angle" that will cause the features to not extend in the direction or within the distance you have specified. You could also try expanding your "Extend" distance to see if they extend in a "wrong direction". – RyanDalton Jan 3 '13 at 15:33
  • i don't put max distance parameter, so the line will be stopped by the nearest feature. i tried deleting those "jogs" by erasing the edges of the line by a buffer on line vertex points – geogeek Jan 3 '13 at 16:11
  • 1
    Can you post some shp samples, or at least a screenshot? of your data? – RyanDalton Jan 3 '13 at 18:01
  • i have discovered that the line that couldn't be extended was overlapped with a identical feature, then i deleted dupllicates using "DeleteIdentical_management". – geogeek Jan 3 '13 at 23:17
  • 1
    since you answered your own question, please post your last comment as the "Answer" and go ahead and accept it. Glad you found the answer. – RyanDalton Jan 3 '13 at 23:32
2

i have discovered that the line that couldn't be extended was overlapped with a identical feature, then i deleted duplicates using DeleteIdentical_management

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.