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
  • 224 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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

srinivasgg
Contributor
Forum|alt.badge.img+6
  • Contributor
  • 18 replies
  • 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+63
  • Celebrity
  • 1625 replies
  • 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
  • 5 replies
  • February 20, 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

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
  • 5 replies
  • February 20, 2023

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+44
  • Influencer
  • 3427 replies
  • 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