cynthia@sinha

Display only those set of points on arcmap that lies inside the current extent.

Discussion created by cynthia@sinha on Dec 12, 2013
Latest reply on Jan 25, 2014 by pepatosp
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 .

Outcomes