Skip to main content
Question

Extract line segment between two points

  • January 21, 2016
  • 4 replies
  • 128 views

Forum|alt.badge.img

Hi All

I have a spreadsheet with a start and end point for various road sections, and I'm trying to extract the road segments between the start and end points from another spatial data sets containing the road geometry.

SECTIONFROM LATFROM LONGTO LATTO LONGA-33.942151.158-33.935151.143B-33.927151.159-33.940151.146---------------

For example, for road

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.

4 replies

erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • January 21, 2016

Did you have a look at the ShortestPathFinder transformer. You will need to create a line using start- and endpoint, but you can use the 2DPointConnector to do that.


Forum|alt.badge.img+7

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • January 22, 2016

neighbourfinder to get _closest vertex for the start and ends. (as the points don't seem to coincide with the lines)

Then a snipper using the _closest x and y's.

..just one of multiple way's to do it


jpvo
Contributor
Forum|alt.badge.img+2
  • Contributor
  • January 22, 2016

neighbourfinder to get _closest vertex for the start and ends. (as the points don't seem to coincide with the lines)

Then a snipper using the _closest x and y's.

..just one of multiple way's to do it

But then you would need 2 LengthToPointCalculator using the closestBasex/y for each of the 2 points along the line. Effectively you need a"from / to"distance for your snipper.