Skip to main content

I have a dataset where polygon sometimes have a long and narrow part like in this image (upper narrow part of the highlighted polygon):

 

I am looking for a way to cut polygons like this in two parts so that the small polygons becomes a separate shape.

Any idea how to do this automatically?

 

Hi @oiram

Could you share us you example?

 

Thanks,

Danilo


Not sure it will give you a solution, but you could try the GeometryValidator transformer, check the "Self intersecion in 2D" and set Repair to Yes.

You will need to set a Tolerance to make these Self Intersecting.

Hope this helps.


Yes, here is a example:

narrow_poly.json


Yes, here is a example:

narrow_poly.json

Thanks your source.

In words do you want to cut this polygon ( example ) in two parts:

Correct?

 

Thanks,

Danilo


Thanks your source.

In words do you want to cut this polygon ( example ) in two parts:

Correct?

 

Thanks,

Danilo

Yes, exactly.


Hello @oiram

I create a Workspace that identify the long and narrow Polygons ( CircularityCalculator and Tester ) and after to separate polygons:

result 

Attached the Workspace - Workspace_Long.fmw

 

Thanks,

Danilo

 


Hello @oiram

I create a Workspace that identify the long and narrow Polygons ( CircularityCalculator and Tester ) and after to separate polygons:

result 

Attached the Workspace - Workspace_Long.fmw

 

Thanks,

Danilo

 

thanks a lot :-)


thanks a lot :-)

You are wellcome


Hi Danilo,

Would it be possible to share the Workspace_Long?

 

Thanks,

Vladislav


Hi Danilo,

Would it be possible to share the Workspace_Long?

 

Thanks,

Vladislav

Hi @vlad_mdc​ I fixed the original file attachment and have also attached it to this comment for your reference.


Hi @vlad_mdc​ I fixed the original file attachment and have also attached it to this comment for your reference.

Hi @lizatsafe​ 

Thanks a lot! 


Reply