Skip to main content
Question

Add single vertexes on lines at a certain distance from points


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+54

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+54
repas4411 wrote:

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?

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings