robintw147

Calculate spacing of polylines along transect

Discussion created by robintw147 on Jan 31, 2011
Hi,

I have a number of roughly-parallel polylines in a Shapefile. I would like to calculate an average spacing of these polylines by using a number of transects across the area covered by my lines. I need to be able to script this, so that it can be run as an unattended script, but I can't think of how best to go about it in Python.

Does anyone have any ideas? Is there a tool that will break a line (the transect) into a number of small lines with the breaks occurring everywhere that it intersects another line? That would seem to me to be the easiest way to do it, as calculating the spacing would just involve calculating the length of the split lines, but I can't seem to see a way to do it. Is this possible? If not, what would people suggest?

Outcomes