Skip to main content
Question

Artiificially creating polygons

  • December 20, 2024
  • 5 replies
  • 95 views

scarter
Contributor
Forum|alt.badge.img+9

Hello Forum,

 

Is it possible to artificially create a polygon based on the lower edge of an existing polygon?

 

Imagine I have an existing polygon, I’d then want to create a new polygon that snaps to the lower edge of the existing polygon. The depth of that polygon doesn’t matter, for example it could just be roughly 50 metres away from the shared boundary. What really matters is that is snaps to the lower edge of the existing polygon.

 

An alternative approach could be that the artificially created polygon is a doughnut polygon which wraps around the existing polygon to say, a depth of 50 metres. I could then split it manually where required…

 

 

I hope this makes sense. Any ideas?

 

Thanks,

Stuart

5 replies

liamfez
Influencer
Forum|alt.badge.img+34
  • Influencer
  • December 20, 2024

When you say “lower edge” are you meaning all edges that are in the lower half of the polygon?
Or all edges that face south?
Not sure if this is more just a geometry problem or if you are working with projected data of say building footprints.


scarter
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • December 21, 2024

Thanks for that, ​@liamfez . Yes, the lower half of the polygon. I wouldn't want just south of it as it's complex polygon. Although it is mostly linear (west to east), is does bend around in places. So, in places I’d want what is south of it, but in other places it would be what west of it, and so on. And in some tiny spots, what’s north of it (see bottom right corner). This is the poly…

 

So, if I ended up with something like the below, that would be a suitable result…

 

The other idea is to create a doughnut polygon around it. I could ten split as required.


liamfez
Influencer
Forum|alt.badge.img+34
  • Influencer
  • December 21, 2024

Okay I was originally thinking of a solution for a more simple shape, but now that I see the polygon in question I am thinking a BoundingBoxReplacer followed by a Clipper may do the trick. Then you would just need to identify the correct outside polygon. I will test that and see what I can come up with.


scarter
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • December 23, 2024

Thanks. I’ll try it.


liamfez
Influencer
Forum|alt.badge.img+34
  • Influencer
  • December 23, 2024

Sorry for the delay.

I ended up using a BoundingBoxReplacer, an Intersector, and an AreaBuilder to get the desired example outcome. I also used an OffsetCurveGenerator on the centerline of the input feature (checking orientation first) to identify which of the built polygons was the lower/southern. I am attaching a partial template file with a couple variations, including the one I was initially working on for different geometries so that you can see a couple different approaches.

This may also help with the geometry issue from your other post (Intersector and TestFilter produces result, but no geometry | Community)


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