Skip to main content
Question

Process points by group

  • March 5, 2019
  • 2 replies
  • 17 views

eric_armitage
Contributor
Forum|alt.badge.img+10

I have a csv containing point data for series of paths so each point contains a pathID attribute. I want to run the points through a workspace but for groups of the points by path. ie run the workspace for path one, output a feature, run the workspace for path 2, output a feature for path 2 etc. Whats the best way to do this? I'm thinking its by using the variable setter and retreiver but not really sure that is the best way.

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

david_r
Celebrity
  • 8394 replies
  • March 5, 2019

Have you tried the LineBuilder? Set the connection break attribute to your path ID. It will output one line per path ID, where the vertices will have the same order as the input points.

You may need to insert a Sorter first to make sure the points enter in the right order, if that's not already the case.


eric_armitage
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • 37 replies
  • March 5, 2019

I've created the initial lines ok but im trying to "snap" them to a network layer using the shortest path finder. But to do this involves inserting extra vertices in the network layer. I'm trying to process the paths one by one to avoid the accumulation of extra vertices in the network layer. I thought about the workspace runner but doesn't that restart the workspace after every group of points? There could be hundreds of paths in a single csv. Im looking for a way to reading in the whole csv then release the points by path ID group if that is possible.