Hi
thaks for answer
I already tried the linecloser before, but it is worst
It just connect the end points of a line. I want all the building separatly ( I then don't need to disolve them)
Have you tried the AreaBuilder? the unsed lines emerging usually indicates some kind of action necessary to be able to convert to polygons.
Unfortunatetly yes I tried first the area builder
It doesn't work :s
Looks like there is more cleaning up to do before conversion to polygons, to me...
Hi,
I also think that the AreaBuilder will be necessary, finally. But the AreaBuilder requires that the lines touch each other at their end nodes, so I would try some transformers to satisfy the requirement. e.g. Snapper+Intersector.
The best solution could be different depending on the actual data condition.
Takashi
Well I didn't try the snapper before. But then when I put an Itersector and a Snapper and then the area builder, I don't understand why it still does not recognize the annexes... Maybe because it already use the line (common side) for one polygon so it cannot reuse one?
The problem is that the annexe is not a complete line. That's why I was thinking about create as many points as I need to create all the polygons. But I still don't understand why the point connector doesn't work with all the points...?
Maybe the unclosed line does not touch with the polygon boundary line, and also the boundary doesn't have vertices which are close to the end nodes of the unclosed line.
Therefor, both Intersector and Snapper were not effective, I guess.
The PointOnLineOverlayer might be effective to once divide the boundary line at points close to end nodes of the unclosed line, so that the Snapper may work as expected.
-----
1) Create start and end node points of the unclosed line using two Snippers in parallel.
Snipping Mode: Vertex
Starting / Ending Vertex: 0 for start node, -1 for end node.
2) Add a PointOnLineOverlayer; send the created points to the Point port, send the polygon boundary line to the Line port, and specify a suitable tolerance.
3) Add a Snapper; send the original unclosed line and the output line from the PointOnLineOverlayer (i.e. divided boundary line) to the Snapper.
4) And then, apply the AreaBuilder to the output lines from the Snapper.
Alternatively, the AnchoredSnapper might be useful if you need to respect the boundary geometry.
Anyway, there isn't an almighty way in such a case. All depends on the actual data condition. You may need trial and error approach to accomplish your goal.
Thank you very much! it looks pretty good!
I still have some particular cases, but that's right.