Skip to main content
Solved

Creating a polygon based on the limits of area geometries

  • March 4, 2024
  • 10 replies
  • 227 views

yagami9
Contributor
Forum|alt.badge.img+6

 

Hi everyone ,

Is there any way to create an area using the limits of area geometries in input ?

For exemple , if my geometries look like this  : 

and if I use the BoundingBoxAccumulator transformer ,it only creates a box based on the limits of the input . 

But I want the output to be like this :

  Any Insight is much appreciated !

Best answer by koulsoum

@yagami9 I have joined all in a zip file.

I used your screenshot of the polygons for the input called “test.png”.

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

10 replies

joepk
Influencer
Forum|alt.badge.img+20
  • Influencer
  • March 4, 2024

yagami9
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • March 4, 2024

Thanks for the idea , It gives a better result than the BoundingBoxAccumulator  , but still very far from what I am looking for .

using the HullAccumulator

 


joepk
Influencer
Forum|alt.badge.img+20
  • Influencer
  • March 4, 2024

No worries, have you tried setting it to concave?


yagami9
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • March 4, 2024

Have you set it to concave? 

Yes, I’ve tried to set it to concave , with different alpha values .but the result is still not good.

using concave , with alpha values : 0.75 , 1.75 , 4 ..

 


koulsoum
Contributor
Forum|alt.badge.img+12
  • Contributor
  • March 4, 2024

Hi @yagami9, I think you can :

  1. Assign an ID to each polygon.
  2. Transform the polygons into lines.
  3. Calculate the orientation of each line.
  4. Group lines with the same orientation.
  5. Extend the lines.
  6. Do a spatial join, grouping by elements with the same orientation but not from the same polygon.
  7. Remove unnecessary elements (outside the polygons).
  8. Select overlapping lines and combine them.
  9. Recreate polygons from the new and original lines.
  10. Merge all polygons into one and remove any holes if present.

I have tested it, I am joining the screenshot of the workflow and the result I have obtained.

 

 


yagami9
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • March 4, 2024

@koulsoum Thanks for the response ! The screenshots of your workflow aren’t visible.

Could you please re-send them .

 


koulsoum
Contributor
Forum|alt.badge.img+12
  • Contributor
  • March 4, 2024

 


yagami9
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • March 4, 2024

@koulsoum Thanks a lot for your time and help !

Could you please share the .fmw file of that workflow ? and the input if that is possible .

I tried to recreate it , but only a few features pass the Tester (_related_suppliers>0 ) , the rest have the value _related_suppliers= 0 .  .

 


koulsoum
Contributor
Forum|alt.badge.img+12
  • Contributor
  • Best Answer
  • March 5, 2024

@yagami9 I have joined all in a zip file.

I used your screenshot of the polygons for the input called “test.png”.

 


yagami9
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • March 5, 2024

@koulsoum Thanks a lot !!! It works