Skip to main content
Question

Add single vertexes on lines at a certain distance from points

  • May 28, 2024
  • 3 replies
  • 81 views

repas4411
Contributor
Forum|alt.badge.img+2

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? 

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+62

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.


repas4411
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • May 29, 2024

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


nielsgerrits
VIP
Forum|alt.badge.img+62

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?