Skip to main content
Solved

LengthToPointCalculator - many points on one track

  • December 20, 2017
  • 2 replies
  • 37 views

I have one track stored in MID/MIF, and a couple of points from other source. It is something like bus route with list of stops. All what I need is to know, how far from the very first stop each other bus stop is. Looks like it is a task for a LengthToPointCalculator, but I can not achieve right way how to use it.:( From what I am starting: I use two MID/MIF readers as sources - one for route, another for stops. Then I use CoordinateExtractor to get X and Y as attributes for each point. And after some alchemy we reach that LengthToPointCalc. I do not want to explain all variants I've tried, but in any case I got only zero as lengths. There are no problem to get length between every pair of sequential bus stops. But I can not imagine how to sum it after that. I will appreciate any help!

Best answer by ebygomm

If you add the line geometry to each feature that contains the x,y attributes the length to point calculator should give you the output you require

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

ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • Best Answer
  • December 20, 2017

If you add the line geometry to each feature that contains the x,y attributes the length to point calculator should give you the output you require


  • Author
  • December 20, 2017

If you add the line geometry to each feature that contains the x,y attributes the length to point calculator should give you the output you require

@egomm thank you alot! I got it. And thanks for join on 1 1:) Was trying to get it throw Cloner, but something was wrong with points counter. With your key all is just fine!