Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

If I have a network of roads. Each road consist of segments. I need to delete all segments that are starting segments of each road and also delete all side roads (dangling) which are represented with only one segment. I do not have idea how to realize this. Any tips? To delete such lines actually means not to proceed them further.

share|improve this question
    
What software are you using? –  Micha Jun 5 '12 at 9:30
    
FME 2011, 2012 ! –  Z77 Jun 5 '12 at 9:33
    
I will try with the MRF2DCleaner transformer and see what I get. –  Z77 Jun 5 '12 at 11:56
    
MRF2DDangleRemover Not available with current license, what kind of licence do I have to have? –  Z77 Jun 5 '12 at 12:27
1  
MRF transformers are an extra cost item. Contact sales@safe.com for pricing info –  Mark Ireland Jun 5 '12 at 17:28

1 Answer 1

up vote 1 down vote accepted

You can find lines that are only a single segment by using the CoordinateCounter. Throw away anything that has a count of 2. Doesn't always mean they are a dangle though.

The surer - but longer - method would be to use the TopologyBuilder and check to see where a segment has a node ID that is not referenced by any other segment. Then it must be a dangle.

share|improve this answer
    
But how to detect in FME if there are duplicate from_node or that there is from_node =! to_node. I tried with Tester but it is not working as I thought. –  Z77 Jun 6 '12 at 10:33
    
Nope. This is really hard to solve... –  Z77 Jun 7 '12 at 10:57
    
Actually It would be good If I could test if _from_node of first segment is _end_node (_to_node) of second (following) segment.. If it is so, so this is not dangling line, but else it is. Am I right???? I tried to test this also with ListHistogram that is counting how many same values of an attribute exists, but with this tranformer I can check only one attribute, not two what will be solution. –  Z77 Jun 7 '12 at 11:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.