Skip to main content

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.

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.


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.

 


Reply