Skip to main content

Hello, happy new year!

I meet an issue with the AnchoredSnapper converter. I use the AnchoredSnapper and SpatialFilter converters can't correctly filter the containment relationship between the two cad layer faces. Can anyone help, thanks

 

I uploaded my CAD data, JMD and JZD layer, I want to get JZD contain layer of JMD

image

This is how I usually do this:

I buffer the features to be contained by a very small negative value, then send every thing to SpatialFilter.

In order to preserve the original geometry of the feature I put it in an attribute before buffering via GeometryExtractor and use GeometryReplacer after SpatialFilter.

If you snap features they won't contain each other, they will be touching. That is why I buffer whit a negative value.

Filter with Contains


This is how I usually do this:

I buffer the features to be contained by a very small negative value, then send every thing to SpatialFilter.

In order to preserve the original geometry of the feature I put it in an attribute before buffering via GeometryExtractor and use GeometryReplacer after SpatialFilter.

If you snap features they won't contain each other, they will be touching. That is why I buffer whit a negative value.

Filter with Contains

thanks,I try it


Reply