As I am newbie in FME software I’m looking for a help.
I have two sources with lines and I have to point the places where lines are not connected.
Is that possible using some transformers? Please look at screenshots and data I’ve attached.
As I am newbie in FME software I’m looking for a help.
I have two sources with lines and I have to point the places where lines are not connected.
Is that possible using some transformers? Please look at screenshots and data I’ve attached.
One way to solve this:
You could also use a SpatialRelator, line source A = supplier and line source B = requestor or vice versa.
If you want to get end point locations of these lines you can continue with the solution from
LineCombiner - combine on attributes, should I use it in my case?
Snipper - starting location and ending location?
With proposal from
Thank you for reply
There is at least one disconnection (I found it manually by viewing the data)
5589afec-52c9-49a5-8dae-ebae5c939e26 from lines1
caf53054-0f84-4cf5-bdac-b185fb27b3ae from lines2
Hi
I think I found a solution you are looking for.
Check out the script below. The neighbourfinder is key in this script. Using lines 1 as starting features it checks for each line what are the two closest neighbours in dataset 'Lines 2’. The distances to these neighbours are stored in a list, with some extra steps I saved them in separate columns.
Be aware that in theory lines can also be connected to just one neighbour and the distance to 2nd neighbour will be large. You can adjust this setting in the Neighbourfinder using the 'Maximum distance’
For now I found 61 lines which are connected to just one line and the distance to the 2nd line is quite small.
Find attached the workbench I created
Thank you
Hi
I’ve checked your idea and output looks promising. Bad connections were found, however there are also lines marked as not connected but in reality there are just on a border of searched area and there is nothing wrong with them.
But errors inside road net can be found and that is most important. Thank you!
Screen with pink lines which comes from the output as not connected but in fact they are connected:
Hi
In case its fine I would really appreciate it if you could set my answer as 'Best answer’ :)
Thanks in advance!
Do you think it can be improved to exclude those border lines?
Hi