I need some input on making a specific "Split Roads" Tool

401
1
08-07-2023 08:34 AM
fjohnpaul2023
New Contributor

Hello, I am new to this community and even ESRI, however I do have some extensive Computer Science background, so I'm sorry if my language doesn't make the most sense.

I am looking to create a tool that will take in a road segment, let the user click a vertex, and have the road split at that vertex while doing some calculations; Road Range calculations to be exact. We used to rely on the old GeoComm maintainer "Split Roads" if that helps anyone. I have an idea on how I want to accomplish this but need some help in a couple of areas.

   -Is there any good documentation, or examples of creating copies of line features and/or segments of it

   -Is there a way to access a lines metadata to lay out all vertices of a line?

   -Is it possible to include user event handling within a python toolbox? (If not, is there a way to make this kind of tool in just regular toolboxes, a standalone script, or in Arcade?)

   -Is there a way to tell the direction a line is going? This question is kind of a stretch considering that lines can go in a circle and completely debunk the question so it's not on the top of my priority list.

I know there are a couple of tools that do tasks similar to this (such as the feature to line tool etc.), however they are missing a bit of functionality I would like it to do, or is applying change to more features than what is needed to be changed.IF there is a tool that does do what I'm asking or even close I would love to know.

I do not want to use attribute rules for calculating the attributes, for this is a rural area and road center-lines are not as uniform as we would like them to be.

Any kind of input is helpful even if it's just a remark. I greatly appreciate everyone who takes the time to look at this post.

Thank you,

1 Reply
JohnPaulFlores
New Contributor

As a follow up, I do not mind using arcade if I need to, and I should clarify: If there is a way to do this with an attribute rule but only apply it to one road at a time that would be ideal.

0 Kudos