Select to view content in your preferred language

How to get features not getting intersected in arcobjects

6608
10
Jump to solution
05-01-2015 06:03 AM
akshayloya
Frequent Contributor

Hi all,

I have two feature classes. I'm intersecting both of them. I have to return features which does not intersect with the other.

Lets take an example.

I have two feature classes: villages and colleges. I'm intersecting both of them.

My query is "Select villages having population greater then 500 not having colleges."

So villages having population greater then is working finely but then it spatially search for colleges in those villages.

what all I need is to select villages which does not have colleges.

Any help would be appreciable. Thanx in advance

Regards

0 Kudos
10 Replies
JavierArtero
Occasional Contributor

Hi again Akshay,

When you call FillCache method in ISpatialCacheManager, you must specify the extent of the cache as a parameter.

You can pass any extent you want.

It could be the visible extent, which can be obtained via IActiveView.Extent at ArcObjects Help for .NET developers.

Or could be the map's area of interest (IMap.AreaOfInterest at ArcObjects Help for .NET developers)

Or whichever IEnvelope you create.

Hope this will be of help. Good luck.

0 Kudos