I have two separate polyline feature classes. One of them contains roads. The other feature class represents sidewalks. I would like to determine the % of roads with sidewalks on both sides of the road. I'm curious to know if anyone has come up with a solution to this sort of question. Appreciate any advice or help!
Solved! Go to Solution.
Hi James,
Check out the attached toolbox and python script. Please note this has had very limited testing so you should run this using a copy of your data in a file geodatabase and verify that the results are valid.
The tool uses road and footpath layers and a search distance as inputs. Also there is the option to specify a workspace if you want to keen the analysis layers used in the calculations.
Basically the script creates perpendicular lines from the mid-point of each road feature, these lines will extend out to your search distance value. The script then tests if the line intersects a footpath to the right or left of the road line and creates summary statistics that are added to the road layer. These are two new fields:
You can then calculate your percentage based on the number of PathSide = 'Both' records compared to your total road count.
Hope this helps.
Owen
Could you post a small part of both featureclasses? That will make it easier to see what implications there might be. This will probably require some programming in python or maybe in ArcObjects.
Sorry, I'm not allowed to post our data online. Thank you for reaching out however.
Hi James,
Check out the attached toolbox and python script. Please note this has had very limited testing so you should run this using a copy of your data in a file geodatabase and verify that the results are valid.
The tool uses road and footpath layers and a search distance as inputs. Also there is the option to specify a workspace if you want to keen the analysis layers used in the calculations.
Basically the script creates perpendicular lines from the mid-point of each road feature, these lines will extend out to your search distance value. The script then tests if the line intersects a footpath to the right or left of the road line and creates summary statistics that are added to the road layer. These are two new fields:
You can then calculate your percentage based on the number of PathSide = 'Both' records compared to your total road count.
Hope this helps.
Owen
HI Owen, thank you so much for your help. I'd love to try this script. However, where do I find the attachment? I'll keep looking, but I'm not seeing it. Thanks!
A the bottom of my post there should be an attachment with a file Footpaths.zip.
In case there is some issue and it is not visible the file is here:
https://community.esri.com/servlet/JiveServlet/download/398901-71059/Footpaths.zip