I am new for developing arcobjects.I am developing with vb.net.I need to get the adjacent polygons i don't know how to get it.If any one know that please give me the Reference.
I think you can use ISpatialFilter ArcObjects Help for .NET developers
First get the geometry of polygon that you want to use to get the adjacent and then use Search on feature class with SpatialRel as esriSpatialRelTouches
I See your reference link now i have some idea but not fully understand.I am New from arcgis development so i need some sample code snippets can you send the sample snippets.
You can do something like this:
// Create a new spatial filter and use the polygon the geometry
ESRI.ArcGIS.Geodatabase.ISpatialFilter spatialFilter = new ESRI.ArcGIS.Geodatabase.SpatialFilterClass();
spatialFilter.Geometry = polyGeom;
spatialFilter.SpatialRel = ESRI.ArcGIS.Geodatabase.esriSpatialRelEnum.esriSpatialRelTouches;
spatialFilter.GeometryField = shapeFieldName;
// Do the search
ESRI.ArcGIS.Geodatabase.IFeatureCursor featureCursor = featureClass.Search(spatialFilter, false);
I hope this helps. You might have to show the code you have tried so far to be more specific.
your Response is very useful but i am using vb.net so i have a small doubt 'what is shapefieldname'?
Retrieving data ...