Skip to main content
Solved

How can I create distance markers along a road/highway line feature at a regular interval and apply the correct distance along the line to each point?

  • February 17, 2023
  • 5 replies
  • 144 views

kyle_r
Contributor
Forum|alt.badge.img+1

I am trying to automate creation of highway markers along a highway line feature class. I have been able to create the points along the highways at the correct interval (Using the DistanceMarker transformer) but I can't figure out how to apply the correct distance along that line (in Kms) to the newly created points. Ie. 2km, 4km, 6km, etc. in an attribute for the new point features.

Best answer by ebygomm

If you already have your points you need this sort of workflow to apply the correct measure to the points and then extract the measure

image

View original
Did this help you find an answer to your question?

5 replies

srinivasgg
Contributor
Forum|alt.badge.img+5
  • Contributor
  • February 18, 2023

Hi,

try using a counter before DistanceMarker transformer. Calculated the attribute value of THE points w.r.t. _count.image 

 


hkingsbury
Celebrity
Forum|alt.badge.img+53
  • Celebrity
  • February 19, 2023

Have a look at the MeasureGenerator - https://www.safe.com/transformers/measure-generator/

 

Essentially the line acts as a tape measure and as you place points on it, it measures the distance from the start of the line to the point


kyle_r
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • February 20, 2023
hkingsbury wrote:

Have a look at the MeasureGenerator - https://www.safe.com/transformers/measure-generator/

 

Essentially the line acts as a tape measure and as you place points on it, it measures the distance from the start of the line to the point

I thought the MeasureGenerator would be the right transformer to use here but every test I've run with it yields no measurements. When previewing my highway lines after running it through the transformer there is no new attribute added to the line denoting any notion of measurement.


kyle_r
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • February 20, 2023
srinivasgg wrote:

Hi,

try using a counter before DistanceMarker transformer. Calculated the attribute value of THE points w.r.t. _count.image 

 

I'm not sure how applying a counter before the points are even generated will work here, could you please elaborate?

 

The points are create BY the DistanceMarker transformer. I have attempted to use a TestFilter to filter all the highway points based on their highway number and apply a counter to them after but the counter doesn't reset between each highway point count, meaning I will have highway No. 1 counts that start where they should: ie. 0,1,2,3,etc. but No. 2 highway counts that will start at 3823, making it essentially useless for getting the correct kilometre marker value for the point.


ebygomm
Influencer
Forum|alt.badge.img+33
  • Influencer
  • Best Answer
  • February 20, 2023

If you already have your points you need this sort of workflow to apply the correct measure to the points and then extract the measure

image


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings