Skip to main content

I’m wondering if there is a way to add vertexes (point) to polylines at a certain distance. 

Lets say I have a .shp layer with several polylines. I also have a table with “errors” that have occurred somewhere on these polylines. The table have the following attributes:

Column 1: Line name (containing the names of the polylines in my .shp layer)

Column 2: Distance measured from XXXX (containing names of stations that connect to the polylines, this is where the distance is measured from)

Column 3: Distance (km)

 

So basically i know the exact point from where the distance is measured from, I know which polyline the error has effected, and I know the distance. Can I automatically map this out? 

I think this can be done using measures.

Not tested but something like:

  • Split the lines on stations. (PointOnLineOverlayer?)
  • Merge the names of the stations to the lines. (CoordinateExtractor on stations and on point 0 of the line, merge on x,y)
  • Generate measures on the lines. (MeasureGenerator)
  • Merge the lines with measures on the errors. (FeatureMerger)
  • Generate points from measure mentioned in error. (Snipper)

====

Attached sample demonstrating this.


What parameters should I put in the snipper? I tried the vast majority of the available attributes but get kind of wierd results


What parameters should I put in the snipper? I tried the vast majority of the available attributes but get kind of wierd results

Have you checked the sample workspace?

 


Reply