Skip to main content
Question

Extract line segment between two points


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

4 replies

erik_jan
Contributor
Forum|alt.badge.img+17
  • 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
Participant
Forum|alt.badge.img+1
  • Participant
  • January 22, 2016
gio wrote:

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.


Reply


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