I'm currently using ArcGIS and I'm trying to create a basic application where I can click on a country and then get back information such as the shape, size, etc.
I've looked at the code snippets and the documentation and up to date this is what I've come up with.
IPoint pt = new PointClass();pt.X = e.X; pt.Y = e.Y;IGeoFeatureLayer layer = myMapControl.get_Layer(0) as IGeoFeatureLayer;ESRI.ArcGIS.Geodatabase.IFeatureCursor cursor = GetAllFeaturesFromPointSearchInGeoFeatureLayer(1.0 , IPoint , layer , myMapControl.ActiveView)So at this point I can click on the map, get the X,Y coords from the mouse - get the base layer from the map control and then get the FeatureCursor. Looking at the cursor info I do see things like CNTRY_NAME but nothing else of use. Am I going about this in the totally wrong direction? I've looked at http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html quite a bit lately in addition to this site, but I'm coming up blank.
أكثر...
I've looked at the code snippets and the documentation and up to date this is what I've come up with.
IPoint pt = new PointClass();pt.X = e.X; pt.Y = e.Y;IGeoFeatureLayer layer = myMapControl.get_Layer(0) as IGeoFeatureLayer;ESRI.ArcGIS.Geodatabase.IFeatureCursor cursor = GetAllFeaturesFromPointSearchInGeoFeatureLayer(1.0 , IPoint , layer , myMapControl.ActiveView)So at this point I can click on the map, get the X,Y coords from the mouse - get the base layer from the map control and then get the FeatureCursor. Looking at the cursor info I do see things like CNTRY_NAME but nothing else of use. Am I going about this in the totally wrong direction? I've looked at http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html quite a bit lately in addition to this site, but I'm coming up blank.
أكثر...