I've done something similar determining bridge surface types with
multiple connecting roads at each end.
The process I used was:
1) separate into two sets (named and unnamed rivers)
2) create a set of points representing both the endpoints of each the
named rivers
3) create a index for each unnamed river and then create a set of both
endpoints for each segment and label each as start or end point
4) use an overlay factory to find named points that overlap with unnamed
points and record the number of overlaps and a list of all the
overlapped named points
5) aggregate on the index for the unnamed points (ie. group the start
and end points together)
6) then use TCL to see if you can find matching names in each of the
aggregated lists for start and end points
7) map the result back to a copy of the original lines
You may want to run the the river segments through an arc factory first
grouping on the names to remove unnecessary segments, though this can
complicate things since all other attribution is lost.
I might be able to dig up some code for you if that would help. Just
fire me off an email at [EMAIL PROTECTED] Hope that helps.
Good luck.
Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our
Professional Services team. Visit www.safe.com/services for details.
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/