[GIS] Creating perpendicular snapped polylines between an existing point and polyline using arcpy

arcpy

Here's my situation – I'm working on a project that requires 20,000+ short connector lines be created, each drawn from a point to a snapped location on a nearby polyline such that the resulting connector line is perpendicular to the polyline.

If done with arcpy, this requires a script that can a.) find the nearest polyline, b.) calculate the place on that polyline that will enable a perpendicular line to be created, c.) create temporary coordinates at that location, and d.) create the connector line.

Has anybody tried something like this? What specific commands might be necessary? Thanks in advance for your help.

-Michael

Best Answer

Take a look at the script linked below. Maybe it will work for you, or maybe you will be able to modify them to fit your needs: