C# code to  Display only those set of points on arcmap that lies inside the current t

302
0
12-12-2013 11:56 PM
cynthiasinha
New Contributor
Hi ,
I have to develop one custom tool that in C# .net while clicking on it in arcmap, it will display only those points which are lying inside the lat,long of current extent.i am new to arcobject ..kindly help

In input i have point feature class that contain lat,long (x,y) .i am explaining ,what i have done so far..
I have calculated the extent by penvelope=activeview.extent

I hav open the point feature class and done spatialquery on it
spatialfilter.SpatialRel=esriSpatialRelEnum.esriSpatialRelContains;

Now i want to dispay those point on arcmap whose coordinates lies inside the envelope.
0 Kudos
0 Replies