...and in Steve's example an AnchoredSnapper is required to make sure the stops actually overlay the end of route points; otherwise the TopologyBuilder fails to work.
Mark --- In [email protected], "mark2atsafe" <[EMAIL PROTECTED]> wrote: > > Hi Steve, > Took a little more work than I expected, but one way to go is the > TopologyBuilder. This creates an ID for each node (stop) and applies > it to the link (route). Then it's just a case of grabbing the stop ID > using the node ID as a join attribute in a FeatureMerger. > > Note that a list is created in each FeatureMerger and the first entry > in that list has been manually exposed (right-clicked list1{}.stopID > and exposed one element to give list1{0}.stopID which is later renamed > to _stop_from) > > I took the liberty of adding this as an example on fmepedia - you can > find it at... > > http://www.fmepedia.com/index.php/TopologyBuilder_Example > > > Hope this helps. The workspace generates simple test data - you'll > just need to plug in your own data (and rename a few of the attributes > in the transformers). > > Regards, > > Mark > > Mark Ireland, Senior Product Specialist > Safe Software Inc. Surrey, BC, CANADA > [EMAIL PROTECTED] http://www.safe.com > Solutions for Spatial Data Translation, Distribution and Access > > --- In [email protected], "Steve Nelson" <steve.nelson@> wrote: > > > > Hi all, > > I've almost solved what I'm trying to do but I'm a little stumped > > and could use some suggestions. > > > > I'm trying to calculate the distance between stops along a transit > > route. One small issue is that the stop points are not actually > > overtop of the linear route, they are off to the side. > > Not a problem because I can use the "pointonlineoverlayer" to "split > > the line at it's closest place to a point within a specific point > > tolerance". > > > > However, each point contains its sequence number along the route > > (stop #1, stop #2, stop #3, etc...until the last stop on the > > route). When using the pointonlineoverlayer, I loose the sequence > > number, all the split lines contain the same sequence number. > > > > So my question is can I somehow keep the sequence number so that > > it's "joined" to the segment? Ideally, I'm trying to output a > > single CSV for each route with headings of RouteNum, > > StopSequenceNum, and Distance. I have the RouteNum, and Distance, > > but can't figure out how I would maintain the sequence number for > > each segment. > > > > Sorry for the long post, just wanted to be a clear as possible re. > > what I'm trying to do. > > > > Suggestions???? > > Thanks, > > Steve > > > Join us at the FME Worldwide User Conference Sept. 21-22, 2006 Vancouver BC Canada. For more information, visit www.safe.com/2006uc. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/fme/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
