Skip to main content
Solved

Check and eliminate the duplication (overlap) between polygons


ahmad_saleh
Forum|alt.badge.img
Hi all I am trying to develop a workbench that checks buildings (Polygons) that are stored in an AutoCAD layer and then remove the duplicated ones, in my case the polygons some times are not identical but they overlap each other and sometimes they are identical but shifted form the centroid form each other.

 

 

Now I need to write them to a file geodatabase , I used SpatialRelator but it fails to delete the overlap or the intersected polygons .

 

I need to delete one of each intersected polygons, and if they are not identical I need to delete the smaller one.

 

 

 

What should I consider also in my workbench?

 

Any help is appreciated.

 

 

Regards,

 

Ahmad

 

 

Best answer by takashi

Hi Ahamad,

 

 

The SpatialRelator will not filter the input features, it adds these attributes containing spatial relationships information to the features.

 

_relationships{}: contains attributes of related Suppliers

 

_related_candidates: contains the number of related Suppliers

 

 

And, if you specify the "Attributes(s) that Must Differ" parameter, the transformer will not collect the Supplier features that have the same value as the Requestor in the attribute.

 

 

If you have calculated areas of the features beforehand, you can test these conditions for the output features.

 

- whether the number of related suppliers is greater than 0.

 

- whether the area of the feature is greater than the related feature.

 

But you may have to consider the case where the area of a feature is equal to the area of the related feature. 

 

 

Example

 

 

If the number of overlaps is always 2 or less, the ListSorter will not be essential.

 

 

Takashi
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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

takashi
Influencer
  • Best Answer
  • May 18, 2015
Hi Ahamad,

 

 

The SpatialRelator will not filter the input features, it adds these attributes containing spatial relationships information to the features.

 

_relationships{}: contains attributes of related Suppliers

 

_related_candidates: contains the number of related Suppliers

 

 

And, if you specify the "Attributes(s) that Must Differ" parameter, the transformer will not collect the Supplier features that have the same value as the Requestor in the attribute.

 

 

If you have calculated areas of the features beforehand, you can test these conditions for the output features.

 

- whether the number of related suppliers is greater than 0.

 

- whether the area of the feature is greater than the related feature.

 

But you may have to consider the case where the area of a feature is equal to the area of the related feature. 

 

 

Example

 

 

If the number of overlaps is always 2 or less, the ListSorter will not be essential.

 

 

Takashi

ahmad_saleh
Forum|alt.badge.img
Many thanks Takashi for the great help, It worked  fine with me, but I am getting more greedy regarding this issue, what if I have 2 buildings that touches each other just like the screen shot below, is there any method to add a tolerance value to let the workbench ignore these polygons??

 

 


takashi
Influencer
  • May 18, 2015
Try setting "OVERLAPS" to the "Tests to Perform" parameter of the SpatialRelator.

 

See here to learn more about spatial relationship predicates.

 

FME Transformers > All Workbench Transformers > Spatial Relations Defined (http://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Desktop_Help.htm#../Subsystems/FME_Transformers/Content/Transformers/spatialrelations.htm)

ahmad_saleh
Forum|alt.badge.img
Many thanks agine Takashi, your the best .

 

 

Regards,

 

Ahmad

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