I have a polygon that there are some partitions inside its boundary and some partitions outside its boundary. My question is how to select the partitions that are outside the boundary of the polygon? I know how to implement it in ArcGIS. I should use select by location and set the target to the layer that have partitions, set the source to the polygon layer and set the relation to "have their centroid in the source layer". But I can't find the corresponding spatial relation in spatial filter class when using ArcObjects and C#. The picture of my polygon and the partitions are as follows:
Yes, Completely Outside does not seem to be one of the SpatialRel values. You should probably use the
SpatialRelDescription property of
I have only used this occasionally, and I'm not fluent in this area. However, I think that you want
"FFFF**TT*". You may have to experiment.
Here's a link to the ArcObjects SDK page for SpatialRelDescription: https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#ISpatialFilter_SpatialRelDescription.htm