Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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")

Any help or advices to solve this problem

share|improve this question
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
show 1 more comment

1 Answer

up vote 0 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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