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

472
1
12-12-2013 11:42 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
1 Reply
RobertoPepato
Occasional Contributor II
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 .


Hello Cynthia,

This forum is specific for ArcGIS Online topics. Make your question on ArcObjects forum, I think that you'll probably get your answer quickly there. Here is the link for it:

http://forums.arcgis.com/forums/20-ArcObjects-SDKs
0 Kudos