Skip to main content
Solved

Creating a polygon based on the limits of area geometries


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”.

 

View original
Did this help you find an answer to your question?

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
joepk wrote:

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
joepk wrote:

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+10
  • 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+10
  • 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+10
  • 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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings