Skip to main content
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

 

 
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
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??

 

 


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)
Many thanks agine Takashi, your the best .

 

 

Regards,

 

Ahmad

Reply