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.
Hi,
try using a counter before DistanceMarker transformer. Calculated the attribute value of THE points w.r.t. _count.
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
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.
Hi,
try using a counter before DistanceMarker transformer. Calculated the attribute value of THE points w.r.t. _count.
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.
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