I have been trying to find object ids of features that overlap partially. Input taken is two linear feature classes , I have tried IRelationalOperator Overlaps methords , but it seems that it only provides those features that overlaps completely . Is there any way round to get those features which overlaps partially.

The other way I tried was through esriSpatialRelationOverlap methord but it seems to produce error, which I have posted in following forum link .


Kindly provide me a way to resolve this issue . Thanks in advance////

Edit Update----- Got the answer by using "esriSpatialRelOverlaps"////

  • Try calling ReleaseComObject on you cursors when you are done with them. Add the code to your question here for further explanation. – Kirk Kuykendall Jun 22 '13 at 23:38
  • got the answer "esriSpatialRelOverlaps" was the key/// – NewBee Jun 23 '13 at 5:20

Perhaps I'm missing the issue but intersect will give you the overlap of features. I'm not familiar with arcobjects, but arcpy.Intersect_analysis() is easy access for the Python shell provided with arcgis. Intersect will return all attributes of all intersecting polygons (including obj ids).

By "linear", if you mean polylines, intersect will return two overlapping features. Otherwise, a buffer could be applied to represent the true width of the feature represented by the polyline.

Alternatively, you could convert the feature classes to raster and find their intersection with an overlay or raster math.

  • But intersection will provide me snapped feature also which i don't want in my result set. – NewBee Jun 22 '13 at 9:04
  • What is a "snapped feature"? – RichT Jun 22 '13 at 16:45
  • jst touching features/// – NewBee Jun 23 '13 at 5:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.