Skip to main content
Solved

Shift line to a certain distance as per point

  • June 7, 2019
  • 2 replies
  • 42 views

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)

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3701 replies
  • 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
  • 132 replies
  • 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)

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.