POST
|
Error 1. The type 'ESRI.ArcGIS.ADF.CATIDs.MxCommands' exists in both 'C:\Program Files\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.ADF.Local.dll' and 'C:\Program Files\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.ADF.dll' c:\documents and settings\spilli\my documents\visual studio 2010\Projects\Updating_Attributes\Updating_Attributes\Updating.cs Error 2. The type 'ESRI.ArcGIS.ADF.CATIDs.MxCommands' exists in both 'C:\Program Files\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.ADF.Local.dll' and 'C:\Program Files\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.ADF.dll' c:\documents and settings\spilli\my documents\visual studio 2010\Projects\Updating_Attributes\Updating_Attributes\Updating.cs Error 3 The type 'ESRI.ArcGIS.ADF.BaseClasses.BaseCommand' exists in both 'C:\Program Files\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.ADF.Local.dll' and 'C:\Program Files\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.ADF.dll' c:\documents and settings\spilli\my documents\visual studio 2010\Projects\Updating_Attributes\Updating_Attributes\Updating.cs
... View more
11-28-2010
07:36 PM
|
0
|
1
|
329
|
POST
|
In my TOC, i have four feature classes with the following names "watershed", "temperature", "watchtowers" and "precipitation". Here, we want the "watershed" which is a polygon feature class and "watchtowers" which is a point feature class to be used for the analysis. Could you please tell me, how can i programmatically refer the above two layers by "name", so that i can use the "watershed" and "watchtower" layer for the analysis (using C#)
... View more
11-25-2010
05:59 PM
|
0
|
2
|
566
|
POST
|
Thanks a lot! I appreciate for taking time from your busy schedule to explain about the concept.
... View more
11-25-2010
05:48 PM
|
0
|
0
|
375
|
POST
|
I am very much new to Arc Objects, Could you please anyone provide suggestions on this. I have a polygon fetaure class in which we have 93 features and in that when I select one polygon in that 93 features - i must able to cut that selected feature into two parts using the cut tool and it has to be done programitically using C#.
... View more
11-24-2010
02:40 PM
|
0
|
2
|
1424
|
POST
|
for the cut polygon snippet, i used "base tool" & in the base tool, we have a class by name "class1" where i pasted the snippet. could you please tell me in order to access this tool how the declaration has to be done and where it has to be done - whether onclick(), onmousedown();... public override void OnClick() { // TODO: Add cut1.OnClick implementation } public override void OnMouseDown(int Button, int Shift, int X, int Y) { // TODO: Add cut1.OnMouseDown implementation } public override void OnMouseMove(int Button, int Shift, int X, int Y) { // TODO: Add cut1.OnMouseMove implementation } public override void OnMouseUp(int Button, int Shift, int X, int Y) { // TODO: Add cut1.OnMouseUp implementation } #region "Cut Polygon" ///<summary>Use a polyline to cut a polygon.</summary> /// ///<param name="polygon">An IPolygon interface that is the polygon to be split.</param> ///<param name="polyline">An IPolyline interface that is used to cut the input polygon.</param> /// ///<returns>An IGeometryCollection with polygons resulting from the split.</returns> /// ///<remarks></remarks> public IGeometryCollection CutPolygon(IPolygon polygon, IPolyline polyline) { if(polygon == null || polyline == null) { return null; } ITopologicalOperator4 topologicalOperator4 = polygon as ITopologicalOperator4; // Dynamic Cast IGeometryCollection geometryCollection = topologicalOperator4.Cut2(polyline); return geometryCollection; } #endregion
... View more
11-24-2010
10:04 AM
|
0
|
1
|
723
|
POST
|
Thanks a lot for taking time from your busy schedule and replying me.
... View more
11-22-2010
10:34 AM
|
0
|
0
|
311
|
POST
|
I am unable to figure it out as how to program Geoprocessing tools using c#.net, could anyone please write a program for the "dissolve" tool using C#. I appreciate for the help you guys do.
... View more
11-22-2010
03:48 AM
|
0
|
2
|
2597
|
POST
|
Thank you Jeff, I appreciate for taking time from your busy schedule and working on this.
... View more
11-22-2010
03:43 AM
|
0
|
0
|
405
|
POST
|
Could anyone help me in converting the below VBA code into C#, i appreciate for the help you guys do. Public Sub DumpAttributesToFileExample() 'Open a new text file to write to Open "c:/temp/outfile.txt" For Output As #1 Dim pMxDoc As IMxDocument Dim pMap As IMap Dim pFLayer As IFeatureLayer Dim pFClass As IFeatureClass Set pMxDoc = ThisDocument Set pMap = pMxDoc.FocusMap 'Get reference to layer in table of contents (0 is topmost layer) Set pFLayer = pMap.Layer(0) Set pFClass = pFLayer.FeatureClass 'Use a Query Filter to select a subset of features using 'a simple SQL where clause Dim pQFilter As IQueryFilter Set pQFilter = New QueryFilter pQFilter.WhereClause = "" 'Establish a cursor used for looping Dim pFCursor As IFeatureCursor Set pFCursor = pFClass.Search(pQFilter, True) Dim pFeature As IFeature Set pFeature = pFCursor.NextFeature 'Loop thru all features and write attributes to output file Do Until pFeature Is Nothing 'Note: below, pFeature.value(1) and pFeature.value(2) use field index numbers of the 2nd and 3rd fields in the table 'to write the values in these fields to output file. Also, the _ character continues an expression to the next line Print #1, "Field #2 = " & pFeature.Value(1) & " and Field #3 = " & pFeature.Value(2) Set pFeature = pFCursor.NextFeature Loop Close #1 End Sub
... View more
11-21-2010
02:59 AM
|
0
|
5
|
505
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|