Skip to main content
Solved

Shift line to a certain distance as per point


parashari
Forum|alt.badge.img+2

Hello. I have to correct the road network geometry by shifting road polyline it to the point(that I created using FME to fix the road) beside it.

Below, the dark line is the existing line and to the left is the existing point at a certain distance. Now, I need to shift the full line geometry as it is overlapping the point and maintaining the same distance overall. The dashed line is the required line to be the output.

I tried Neighbourfinder to find the distance and stuck there. AnchoredSnapper(segment snapper) should work, but not purely working. Any ideas about how do I take it ahead.

Thanks!

Best answer by redgeographics

You could try a the OffsetCurveGenerator. It'll output a copy of the line offset to the specified distance in both directions (left and right) so then you'll just need to figure out which one you want. As you already have that point a SpatialFilter should do (unless you have really weird geometry)

View original
Did this help you find an answer to your question?

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+50
  • Celebrity
  • Best Answer
  • June 7, 2019

You could try a the OffsetCurveGenerator. It'll output a copy of the line offset to the specified distance in both directions (left and right) so then you'll just need to figure out which one you want. As you already have that point a SpatialFilter should do (unless you have really weird geometry)


parashari
Forum|alt.badge.img+2
  • Author
  • June 7, 2019
redgeographics wrote:

You could try a the OffsetCurveGenerator. It'll output a copy of the line offset to the specified distance in both directions (left and right) so then you'll just need to figure out which one you want. As you already have that point a SpatialFilter should do (unless you have really weird geometry)

Hi @redgeographics. This is an outstanding one. I used NeighbourFinder first and then used the OffsetCurveGenerator with the offset value of _distance from NeighbourFinder.

Thanks for your advice.


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