0

I have a polyline SHP with a bunch of very short lines (less than one meter length).

Is there an automated way to force the short lines to connect to a neighboring line at complex intersections?

In the example below, I'd want the highlighted line to connect with the line on the same trend (i.e., northeast to southwest; north is up). Using ArcMap 10.7 Advanced License. I will ultimately need to do this for a few dozen SHP files, and each has thousands of lines in it (so, I'll roll the solution into ArcPy).

enter image description here

  • use geodatabase (can merge the shapefles) then use the topology ruleshttps://desktop.arcgis.com/en/arcmap/latest/manage-data/editing-topology/geodatabase-topology-rules-and-topology-error-fixes.htm#GUID-2154EDB0-E9C2-4B76-8F8D-94B81FE13D7B then acpy can used to automate gis.stackexchange.com/questions/94112/… – Mapperz Nov 11 '19 at 17:01
  • whats the typical gap distance between your end of short line to the line you want to snap to? metres, kilometres? – Hornbydd Nov 11 '19 at 21:02
  • You obviously shown us the sum total of 1 example, so assuming the rest of your data is the same (???) then have a look at the extend line tool as a potential solution? – Hornbydd Nov 11 '19 at 21:06
  • Probably not what you're looking for, but here is a method using postgis topology: blog.mathieu-leplatre.info/… – jbalk Nov 11 '19 at 21:59
  • is there a common attribute between the two lines you want to connect? (i.e. ID number, name). – doronwen Nov 11 '19 at 22:14

Your Answer

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

Browse other questions tagged or ask your own question.