Skip to main content
Solved

Lines to polygon that intersect with a polygon border


mlupien
Contributor
Forum|alt.badge.img+7

Hi,

I am pretty new to FME and I am trying to find a way to transform contour lines that have been clipped into polygons where the boundary of the Clipper polygon would be used to close the polygons.

The point is that I am trying to create polygons to illustrate the flooding zones which elevation are:

2 years: between 0 and 21.99

20 years: between 21.99 and 22.75

100 years between 22.75 and 23.2

Any hint is welcome !

 

Thank you,

Best answer by redgeographics

I've had a go at it:

It looks like this works for the 20 years flood zone, but not for the 100 years one as there is some weird stuff going on at the western end of it. I'm sure that can be fixed with FME but I'm a bit short on time today.

The key is to cut up the buffered boundary into smaller segments and use only the ones touching the contour lines to form areas, this avoids forming the big polygons on either side of your set of contours. You'll need to either repeat this set of transformers for the other 2 inputs or make 2 additional copies of the buffers, assign them attributes matching the input names and setting group by's on the transformers.

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

5 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • May 1, 2019

The transformer to convert lines to polygons is the AreaBuilder.

The link is a link to the documentation of that transformer.


mlupien
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • May 2, 2019
erik_jan wrote:

The transformer to convert lines to polygons is the AreaBuilder.

The link is a link to the documentation of that transformer.

Sorry, I think I need more details about how to do what I am trying to do... all the polygons that I am creating with AreaBuilder are not what I am looking for...

Any tutorial to use AreaBuilder ? all I can find is about making polygons from a grid... not my case...

 

Thank you


redgeographics
Celebrity
Forum|alt.badge.img+50
  • Celebrity
  • Best Answer
  • May 2, 2019

I've had a go at it:

It looks like this works for the 20 years flood zone, but not for the 100 years one as there is some weird stuff going on at the western end of it. I'm sure that can be fixed with FME but I'm a bit short on time today.

The key is to cut up the buffered boundary into smaller segments and use only the ones touching the contour lines to form areas, this avoids forming the big polygons on either side of your set of contours. You'll need to either repeat this set of transformers for the other 2 inputs or make 2 additional copies of the buffers, assign them attributes matching the input names and setting group by's on the transformers.


mlupien
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • May 2, 2019
redgeographics wrote:

I've had a go at it:

It looks like this works for the 20 years flood zone, but not for the 100 years one as there is some weird stuff going on at the western end of it. I'm sure that can be fixed with FME but I'm a bit short on time today.

The key is to cut up the buffered boundary into smaller segments and use only the ones touching the contour lines to form areas, this avoids forming the big polygons on either side of your set of contours. You'll need to either repeat this set of transformers for the other 2 inputs or make 2 additional copies of the buffers, assign them attributes matching the input names and setting group by's on the transformers.

@redgeographics, so many thanks !!

It is exactly the kind of solution I was looking for !!

You are amazing !


redgeographics
Celebrity
Forum|alt.badge.img+50
mlupien wrote:

@redgeographics, so many thanks !!

It is exactly the kind of solution I was looking for !!

You are amazing !

Thank you! Happy to help :)


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