Skip to main content
Question

Is there a way to do segment snapping for polygons but dont snap to self?

  • June 28, 2018
  • 4 replies
  • 183 views

Forum|alt.badge.img

Hi Im snapping a large dataset of complex polygons with donuts to remove overlaps and such, I tried the sliver remover but it takes forever and eventually crashes with no real reason why in the log, I've tried allsorts of validation to fix this but still have the problem with sliver remover crashing. So now Im using the snapper, but the problem I have is some of my really thin polygons snap to themselves creating degenerate geoms, is there a way to do segment snapping but don't snap to self?

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.

4 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • June 28, 2018

Hi @smurf,

We have re-written and renamed the SliverRemover in FME 2018 (to AreaGapAndOverlapCleaner). Please try cleaning your polygons with this new version - I think you should get better results.


Forum|alt.badge.img
  • Author
  • 26 replies
  • July 2, 2018

Hi @smurf,

We have re-written and renamed the SliverRemover in FME 2018 (to AreaGapAndOverlapCleaner). Please try cleaning your polygons with this new version - I think you should get better results.

I have now upgraded to 2018, my results are much improved but Im still finding it closing holes in donut shaped polygons that are below my tolerance even when there is another polygon filling the hole. I would expect it not to touch these as there is no gap or overlap but it seems to be closing them. I have better results now but still not the desired results.

 

 


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • July 3, 2018
I have now upgraded to 2018, my results are much improved but Im still finding it closing holes in donut shaped polygons that are below my tolerance even when there is another polygon filling the hole. I would expect it not to touch these as there is no gap or overlap but it seems to be closing them. I have better results now but still not the desired results.

 

 

Hi @smurf,

 

The tolerance setting defines the minimum distance between point before they are considered coincident. Any polygon smaller than the tolerance would be considered a point.

 

 

The tolerance setting should have quite a small value, or set to Automatic.

 

 

We recently added tolerance to many of our transformers in order to deal with vertices not being considered matched because they were a very small distance apart, often due to binary rounding.

 

 

If you wish to fill larger gaps between the polygons, please set Advanced Parameters - Fill All Gaps to Yes.

 

 


Forum|alt.badge.img
  • Author
  • 26 replies
  • July 4, 2018
Hi @smurf,

 

The tolerance setting defines the minimum distance between point before they are considered coincident. Any polygon smaller than the tolerance would be considered a point.

 

 

The tolerance setting should have quite a small value, or set to Automatic.

 

 

We recently added tolerance to many of our transformers in order to deal with vertices not being considered matched because they were a very small distance apart, often due to binary rounding.

 

 

If you wish to fill larger gaps between the polygons, please set Advanced Parameters - Fill All Gaps to Yes.

 

 

HI Dave,

 

 

What I'm seeing is that I have donut hole that is filled by another polygon so there is no gap or overlap and it is attempting to close it, there is another polygon in the donut hole therefore I wouldn't expect it to try and close it. I will try with 0 tolerance, will it only fix overlaps then?