Select to view content in your preferred language

Calculate spacing of polylines along transect

743
0
01-31-2011 12:56 PM
RobinWilson
Emerging Contributor
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?
Tags (2)
0 Kudos
0 Replies