Question

how to create a area using line geometry in below scenario?


Badge +5

Hi all,

How to join the line geometries to make area in below scenario? I tried with area builder transformer it could able to convert few lines only !

imageIs there any other ways?

my input data is dwg file.

 

Thanks in advance!

saravanakumar


10 replies

Userlevel 3
Badge +26

Try the LineExtender prior to the AreaBuilder. I've had some datasets where an Intersector was also needed after the LineExtender. The likely cause is the lines not overlapping given the tolerances in FME. I'm guessing a small extension value will be needed, something like .0001. If you go too large it can produce unwanted results.

Userlevel 1
Badge +11

Or use the Snapper; this will also insert a vertex on the snapped-to line.

Badge +5

Thank you @dustin​  and @danatsafe​ 

That both transformers are creating same result.

But they don't joining the corner ones where other line's endpoints joining. I wish to close remaining 3 sides with highlighted one to create polygon from that.

Is it possible with any transformers?

image 

TanQ,

Saravanakumar

Badge +2

It should be working with the AreaBuilder.

Could you perhaps add the DWG as attachment?

And which version of FME are you using?

Badge +2

@saravanakumar​ AreaBuilder should work on it's own as @stefanh​ suggests. Use the Snapping Pre-Processing parameters to set the Snapping Type & Snapping Tolerance.

Badge +5

Hello @stefanh​ and @Mark Stoakes​ ,

Apologies for the delay reply !

I tried with snapping but it could not process all the lines !

@stefanh​ I can share you dwg file you can try !

 and My FME version 2021.2.6(32 bit)

 

Thank you,

saravanakumar

Badge +2

@saravanakumar​ Many of your lines are not well noded as shown below:

imageAIf you use Snapper followed by Intersector, as suggested by others above, that will address most of the problems. But... the line work in the DWG does not close - in some cases there are gaps - in this case about 2m, as shown below:

imageBSo these need to be cleaned up with a larger snapper tolerance

Badge +5

@saravanakumar​ Many of your lines are not well noded as shown below:

imageAIf you use Snapper followed by Intersector, as suggested by others above, that will address most of the problems. But... the line work in the DWG does not close - in some cases there are gaps - in this case about 2m, as shown below:

imageBSo these need to be cleaned up with a larger snapper tolerance

hello @Mark Stoakes​ ,

Thank you for valuable answer and I accept that, those data need to be use with high tolerance than usual.

Thank you for your support guys !

 

regards,

saravanakumar

 

Badge +2

Hello @stefanh​ and @Mark Stoakes​ ,

Apologies for the delay reply !

I tried with snapping but it could not process all the lines !

@stefanh​ I can share you dwg file you can try !

 and My FME version 2021.2.6(32 bit)

 

Thank you,

saravanakumar

Hello @saravanakumar​ ,

I am glad the issue is solved. I couldn't reply earlier, I was outdoors last week.

regards, Stefan

 

Badge +5

Hello @saravanakumar​ ,

I am glad the issue is solved. I couldn't reply earlier, I was outdoors last week.

regards, Stefan

 

Hi @stefanh​ ,

 

Thanks for your support !

 

Regards,

saravanakumar

 

Reply