Question

Detect and simplify a road network

  • 1 November 2018
  • 4 replies
  • 4 views

Is there a way to detect parallel lines in a road network and simplify the parallel segments to one main line as shown in this picture? I've tried this with the FuzzyParallelLineFinder but it didn't work and the performance was very low. Thanks in advance. Steven Loosman


4 replies

Userlevel 4
Badge +30

Hi @stevenloosman

Did you try to use only the transformer NeighborFinder?

 

Could you share us a sample your data?

 

Thanks,

Danilo

Badge +3

@stevenloosman

 

Hi Steven,

 

The kines are more like "paralellish".

You could chop the lines 2 vertices. Neighbourfinder set to relevant range.

Compare orientation with some margin.

 

I used this to find "paralellish" lines with First creator sets a 10% margin, the tester tests orientation (neglecting direction)

 

(BTW:I have a attribute rounder between these 2 set to 0 decimals, else it fails. dunno why)

 

Badge +3

@stevenloosman

 

Hi Steven,

 

The kines are more like "paralellish".

You could chop the lines 2 vertices. Neighbourfinder set to relevant range.

Compare orientation with some margin.

 

I used this to find "paralellish" lines with First creator sets a 10% margin, the tester tests orientation (neglecting direction)

 

(BTW:I have a attribute rounder between these 2 set to 0 decimals, else it fails. dunno why)

 

@stevenloosman

addendum.

Hoek_vs would be line angle. Hoek BB sides the angle of found candidates.

 

Concerning using test "In Range" with attributes.

When you chose this test you can click the dotted icon to choose range attributes.

When you do and exit, it enters an excessive @Evaluate to the string. You need to manualy remove it....

the hh (5th test) in the below pic shows it.

wegen.zip this is a sample of OSM with some parallel roads. regards, Steven

Reply