Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 .

http://forums.arcgis.com/threads/87164-AutomationException-0x80004005-error-while-quering-overlapped-features?p=308026#post308026

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

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

share|improve this question
    
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

1 Answer 1

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.

share|improve this answer
    
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"? –  Green Mtn Rich Jun 22 '13 at 16:45
    
jst touching features/// –  NewBee Jun 23 '13 at 5:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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