POST
|
Hi, I am having a .gdb file(World.gdb). I want to display or i want to see the content of this gdb file in winForms programmatically(C#). How can i do it? I dont want to view via ArcCatalog. Please help soon. Regards, Arun
... View more
01-21-2013
11:12 PM
|
0
|
1
|
5252
|
POST
|
Hi, I tried this, and it worked. IFeatureLayer2 featureLayer = (IFeatureLayer2)map.get_Layer(0); IFeatureClass featureClass = featureLayer.FeatureClass; ////create a new feature(row) IFeature feature = featureClass.CreateFeature(); feature.Shape = buffPolygon; IFeatureLayer bufferLayer = new FeatureLayerClass(); bufferLayer.Name = "Buffer Layer"; bufferLayer.FeatureClass = featureClass; axMapControl1.AddLayer(bufferLayer); buffPolygon is the buffer created. I don't know how efficient this code is. But it works fine Regards, Arun
... View more
01-18-2013
07:21 PM
|
0
|
0
|
253
|
POST
|
Hi, I have created buffer polygon using topological operator. Now i want to add that feature(bufferpolygon feature)to mxd(TOCControl) document. Ho can i add?Please help.. Regrads, Arun
... View more
01-17-2013
08:34 PM
|
0
|
2
|
453
|
POST
|
Hi, I have created a buffer as follows IMap map = axMapControl1.ActiveView.FocusMap; IFeatureSelection fSelection = map.get_Layer(0) as IFeatureSelection; ISelectionSet selSet = fSelection.SelectionSet; ICursor cursor; selSet.Search(null, true, out cursor); IFeature feat = ((IFeatureCursor)cursor).NextFeature(); ITopologicalOperator topoOpr = feat.Shape as ITopologicalOperator; IPolygon buffPolygon = topoOpr.Buffer(100) as IPolygon; IActiveView activeView=axMapControl1.ActiveView; IScreenDisplay screendispaly = activeView.ScreenDisplay; screendispaly.StartDrawing(screendispaly.hDC, (System.Int32)esriScreenCache.esriAllScreenCaches); ISimpleFillSymbol simFillSymbol = new SimpleFillSymbolClass() ; simFillSymbol.Style = esriSimpleFillStyle.esriSFSSolid; IRgbColor color = new RgbColorClass(); color.Red = 255; simFillSymbol.Color = color; ISymbol symbol = simFillSymbol as ISymbol; screendispaly.SetSymbol(symbol); screendispaly.DrawPolygon(buffPolygon); Now i can see a buffer around a feature. I want to save it as a Feature class into data base. How can i do it? Please help me out.. Thanks
... View more
01-17-2013
01:53 AM
|
0
|
0
|
306
|
POST
|
Thanks for your help. That worked fine. I have one more question. What is the difference between creating buffer like this and creating by Execute method? if i want to create buffer and display it on map using Execute method,how can i do it? Thanks and Regards, Arun
... View more
01-16-2013
10:31 PM
|
0
|
0
|
306
|
POST
|
Hi, I want to create buffer only for selected features which are selected from "select feature tool". How to do it using c#.net? Thanks and Regards, Arun
... View more
01-16-2013
06:27 PM
|
0
|
5
|
797
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|