Question

Split up polygon where it becomes long and narrow


Badge

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?

 


11 replies

Userlevel 4
Badge +30

Hi @oiram

Could you share us you example?

 

Thanks,

Danilo

Userlevel 2
Badge +12

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.

Badge

Yes, here is a example:

narrow_poly.json

Userlevel 4
Badge +30

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

Badge

Thanks your source.

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

Correct?

 

Thanks,

Danilo

Yes, exactly.

Userlevel 4
Badge +30

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

 

Badge

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 :-)

Userlevel 4
Badge +30

thanks a lot :-)

You are wellcome

Badge

Hi Danilo,

Would it be possible to share the Workspace_Long?

 

Thanks,

Vladislav

Userlevel 2
Badge +14

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.

Badge

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