Skip to main content

Road is aggregated based on Road ID, that I have in the table as well. So for example I want to create point in X meters ( X value from table) . Snipper is not working for this task. Any solution for this?

Thank you 

once you've aggregated your lines, are you sure the vertices are all in order? The first vertex of the line might not actually be at the start of the line.

 

Another transformer to look at will be the linecombiner


hkingsbury Thank you for your answer. To be more precise I have a table with no XY, Only Meters(start and end point)and Road Id value. Also, Road geometry with only Road Id attribute. I tried Line combiner and snipper still gives very weird output, instead of creating points on based the measurement, it creates points on every road with no rules.  

12222222222222222222222222222222Snipper Output:

22222222222222222222222222222222222222222222222


Are you looking at creating points that are coincident with the line, or additional vertices within the line?

 

For the former, I'd generate a measure on the line, then use a snipper using Measure Value mode to snip the line to a point (if you use the same start and end location you will get a point). So you'd need two snippers to get start and end points.


@gisgis2014devel​  I think you're on the right track with Snipper. You need to join each event to the road segment (FeatureJoiner) using your RoadID. Then use Snipper. this will give you the event segments. These can be tied back to the original route with NeightbourFinder . If you don't want the event segments and only the points, Snipper can use the same value for from/to to give a point, and again, NeighbourFinder can be used t tie that back to the road and insert the vertex (or AnchorSnapper)


Are you looking at creating points that are coincident with the line, or additional vertices within the line?

 

For the former, I'd generate a measure on the line, then use a snipper using Measure Value mode to snip the line to a point (if you use the same start and end location you will get a point). So you'd need two snippers to get start and end points.

Thank you for your reply. Yes, creating points that are coincident with the line. I think complex road geometry gives that unwanted output.


Hi, searching for like minding request I found this post again. Here is my way of doing this.

Two features:

Network LRS with geomtry and m (measure) in the table is Roadname

Event table (line type) with Roadname and MeasureFrom and measureTo fields no geometry

Using Event Geometry transformer:

 

now if that makes the lines you want, finish it off with LRS_GetRouteMeasure which will give you the Event From Measure and To Measure in fields and my favorite the From X, From Y , To X , To Y fields also.

image.png 


Reply