@ronnieutter That's an interesting problem. Thanks for including the clear description of what you're trying to accomplish and the sample dataset.
There's usually several ways to solve a problem in FME. I've taken a completely different approach so hopefully you can borrow one or two thoughts from that.
- Areas: to build the areas I tried HullAccumulator with concave hulls. This seems to build the areas OK for the sample data.
- Network: I tried joining all the areas (center points) to all other areas (full outer joiner). Then merge the lines by area id and find the line with the shortest length. That seems to give a reasonable network
Attached is the workspace (FME 2019.2): join_areas2.fmwt
Still have to snap the lines to the original network points. I think you could do that by clipping the lines to the areas and then AnchorSnapper to the nearest network point.
Thank you @markatsafe for your answer. I am eager to try your solution you are describing using full join and choose the shortest line tomorrow.
@ronnieutter That's an interesting problem. Thanks for including the clear description of what you're trying to accomplish and the sample dataset.
There's usually several ways to solve a problem in FME. I've taken a completely different approach so hopefully you can borrow one or two thoughts from that.
- Areas: to build the areas I tried HullAccumulator with concave hulls. This seems to build the areas OK for the sample data.
- Network: I tried joining all the areas (center points) to all other areas (full outer joiner). Then merge the lines by area id and find the line with the shortest length. That seems to give a reasonable network
Attached is the workspace (FME 2019.2): join_areas2.fmwt
Still have to snap the lines to the original network points. I think you could do that by clipping the lines to the areas and then AnchorSnapper to the nearest network point.
Thank you @markatsafe for your alternative way to calculate the lines. I have learn more to test and look at your script and am sure that some of the logic can be applied in my script. I will try to experiment more with lists and joins. I think thats the best way to slim the process instead of alot of buffers and dissolves. Thank you for your time and to have shared an alternative logic.
@ronnieutter That's an interesting problem. Thanks for including the clear description of what you're trying to accomplish and the sample dataset.
There's usually several ways to solve a problem in FME. I've taken a completely different approach so hopefully you can borrow one or two thoughts from that.
- Areas: to build the areas I tried HullAccumulator with concave hulls. This seems to build the areas OK for the sample data.
- Network: I tried joining all the areas (center points) to all other areas (full outer joiner). Then merge the lines by area id and find the line with the shortest length. That seems to give a reasonable network
Attached is the workspace (FME 2019.2): join_areas2.fmwt
Still have to snap the lines to the original network points. I think you could do that by clipping the lines to the areas and then AnchorSnapper to the nearest network point.
Hello again @markatsafe Sorry for my late answer. I have now tested your example and its a smart solution that will work for my idea. I understand its a prototype so some parts still need further development to match the rest of my logik.. But your example is really smart and I will apply a modifed version of it. Thank you for your time
Hello again @markatsafe Sorry for my late answer. I have now tested your example and its a smart solution that will work for my idea. I understand its a prototype so some parts still need further development to match the rest of my logik.. But your example is really smart and I will apply a modifed version of it. Thank you for your time
@ronnieutter Great. Thanks for letting me know that some of this was useful. Hopefully the rest of your project goes well.