Select to view content in your preferred language

How to get attribute by clicking on map control using C#?

918
2
07-18-2010 05:39 AM
Chandan_KumarRath
Emerging Contributor
I am using C# as the development language for ArcGIS Engine. I have developed an application for ArcView GIS 3.2. Now I have to translate that application to ArcGIS Application. I am facing problem to get attributes of a point feature by clicking on a map control. Can anybody please give the C# code.

Thanks.......!
0 Kudos
2 Replies
srinivasreddy
Deactivated User
U can write the code under mapcontrol_mousedown event.

1)By using ITopologicalOperator u have to create some buffer around the mouse click area.
2) Then check is there any geometry avalable in that buffer.
3) Then pass that geometry to spatial filter u can get the attribute values
0 Kudos
Chandan_KumarRath
Emerging Contributor
U can write the code under mapcontrol_mousedown event.

1)By using ITopologicalOperator u have to create some buffer around the mouse click area.
2) Then check is there any geometry avalable in that buffer.
3) Then pass that geometry to spatial filter u can get the attribute values


The first and second point are done.
Now how to create spatial filter....?
0 Kudos