Skip to main content

Hello,

I have 2 shape files that i need to intersect, one is a long line, the other is a set of points that I know are on the line. I want to cut the line into smaller ones, but not in a way that PointOnLineOverlay would work, as it cuts it in segments, which we can not choose the length of.

I want to the line cut on each point, and make the lines resulting a certain length in each direction before and/ or after the point, in a way that they overlap partially one onto another.

Have a great day

Your question sounds really confusing. A picture could help clearify what you are trying to achieve.

 

If the points are not the position to cut the line. Then what has the point to do with cutting the line? Or do you need to cut the line on the points and then make the lines longer?


It should be possible

I would probably buffer the points, then use a spatial relator to transfer an id for the buffered point to a list on the line, explode the line so you now have a copy of the line per point, clip the line by the buffered point grouping by the id, then a snipper to get the correct length (probably need some maths here)


Your question sounds really confusing. A picture could help clearify what you are trying to achieve.

 

If the points are not the position to cut the line. Then what has the point to do with cutting the line? Or do you need to cut the line on the points and then make the lines longer?

Sorry I had to use paint for that.

But I have one shapefile, represented by the black line?

The other shape is the set of points on the lines, drawn in red mostly, with one blue and yellow.

You can see the yellow point on the line has a segment of a certain length linked to it, delimited by the yellow bars. Same with the blue. They overlap, but I would like to have them as different entities and Fme doesn't really like overlapping data.

With a simple PointOnLineOverlay, the line would be cut between the 2 closest points on the line, without taking care of the needed length I can not use a LineExtender either as it is curved in a way we are not able to predict.

It might sounds strange, and trust me, it is


It sounds good, but unfortunately the data is too heavy to handle having a copy of the line per point.

But I will look deeper into what I can do with a snipper thanks


Reply