Thanks for replying diligentpig
My code to get feature within buffer is below. i tried your code but could not find co-ordinate X and Y and function Square and also u used " city.Attributes["DistToPoint"] " is that field is of type distance , i replcaed it with CITY as in my case,
Plz explain Thank you.
private void idtask_ExecuteCompleted(object sender, IdentifyEventArgs args)
{
string Place=string.Empty,wellno=string.Empty,SiteName;
int wellId=0;
foreach (IdentifyResult selectedGraphic in args.IdentifyResults)
{
switch (selectedGraphic.LayerId)
{
case 0:
if (selectedGraphic.Feature.Attributes["City"] != null)
{
string City= selectedGraphic.Feature.Attributes["City"].ToString();
}
break;
case 1:
if (selectedGraphic.Feature.Attributes["CODE"] != null)
{
Code.Add(Convert.ToInt16(selectedGraphic.Feature.Attributes["CODE"]));
}
break;
}