AnsweredAssumed Answered

How to do 'Target layer(s) has their centroid in the source layer by ArcObjects?

Question asked by MHArcGISOnline on Jan 14, 2015
Latest reply on Jan 15, 2015 by Hornbydd

ArcObjects 10 has esriSpatialRelEnum 9 Constants. When we use ArcMap 10.2, we can do ‘Select by location’ by  'Target layer(s) has their centroid in the source layer feature’.

 

is there an equivalent of esriSpatialRelEnum constant in ArcObjects  to 'Target layer(s) has their centroid in the source layer feature' in ArcMap 10.2 Select by Location?

 

I need to find if the centroid(s) of legal parcel (s)  in one Polygon layer are within the selected Tax parcel polygon in another polygon layer.

 

I found a very similar discussion "Select by centroid within using ArcObjects" in ESRI Archived Forums, which helps. However, I'd like to have some code snippets to start.  Appreciate your help!

Outcomes