ArcObjects is a set of COM-based APIs from ESRI Inc. that are used in several of their products, ArcGIS Desktop, ArcGIS Engine and ArcGIS Server.
4
votes
1answer
754 views
Filtering a raster by pixel cluster size in ArcGIS?
I have a raster image representing islands in a river (see image) created using the following process:
1) Clip a water surface DEM and watershed DEM by a bounding polygon (waters' edge).
2) Subtract ...
2
votes
0answers
245 views
Rendering raster layer from DTED based on height color map
I have a raster layer that was create from DTED file (dt1 specifically), created by the following code:
var rasterLayer = new RasterLayer();
rasterLayer.CreateFromFilePath(dtedFilePath);
The dted ...
7
votes
1answer
559 views
How to create a 9.3 file geodatabase with ArcObjects SDK for ArcGIS 10?
In ArcGIS 10 I could use the Create File GDB geoprocessing tool to create a 9.3 file geodatabase or the Create Personal GDB geoprocessing tool to create a 9.3 personal geodatabase.
But I cant't find a ...
3
votes
0answers
140 views
Should the IRelationalOperator.Equals return true regardless of vertex orientation?
I don't recall every having an issue with this method, but I am now. As I understand IRelationalOperator.Equals, vertex orientation shouldn't affect equality and if I take a polyline and reverse ...
2
votes
0answers
404 views
Intersect two layers and get resulting features
I have X layers on a map and I need to intersect chosen layers (two per time) and color resulting features.
I'm trying to get this code working
// get first feature (index 0)
...
1
vote
0answers
898 views
Edit SDE table with ArcObjects - continued [closed]
Update
So, I believe I'm getting closer to being able to edit my sde table, however now I'm getting stuck on this line:
Dim updateCursor As ICursor = table2.Update(Nothing, True)
With this ...
2
votes
1answer
120 views
Arcobjects - Make new folder
Does anybody know how to create a new folder with arcobjects?
This is what I want to do: insert a text in a TextBox and, when I run the aplication, it will create a folder with the name wroten in the ...
4
votes
0answers
346 views
ArcGIS - find layer ID and name from a Identify query
I need to retrieve the layer ID of every layer returned by the IQueryFunctionality.Identify function (I am using ADF with .NET)
Identify function spits out a DataTable array for layers which have ...
1
vote
1answer
613 views
Finding TOC Layers Type (layer,grouplayer,..) and layerindex of a layer
How can i find the type of the layers in TOC ?
these types are very important to me :
1.layer (that has a valid datasource)
2.layer (that lose its datasource because of changing the address of its ...
0
votes
1answer
76 views
Problem with editing representation
How we can edit the representation of a layer programmatically in DotNet ?
''Representations allow you to customize the appearance of features by storing symbol information with the feature geometry ...
8
votes
2answers
313 views
Is it possible to use a Multipatch to implement IFeatureRenderer.Draw in a custom renderer
I have a custom renderer which need to render modified geometry. The input features are all coming in via the IFeatureCursor as polygon elements. (This is similar to this example, though I'm not ...
10
votes
4answers
345 views
Does SHAPE_Length take into account elevation values?
Does the Shape_Length attribute take into account the elevation? For instance, if I have 3 points: A, B, and C
A.X = 10
A.Y = 10
A.Z = 10
B.X = 10
B.Y = 10
B.Z = 50
C.X = 0
C.Y = 0
C.Z = 10
Then I ...
5
votes
3answers
517 views
ArcGIS10 Debugging
First ever post to this forum,
I have a C# extension (legacy from another developer) which I am trying to debug in the ArcGIS 10 Environ (64bit machine/Windows7).
I have built the ext in "Debug" ...
0
votes
1answer
301 views
arcgis server 10, vb.net, IMathOp problem
i am using arcgis server 10 and visual studio with vb.net to build web mapping application. inside my code i have the following line:
Dim RasterCal As ESRI.ArcGIS.SpatialAnalyst.IMathOp = _
New ...
4
votes
1answer
191 views
Create a esri layer file through web map
Is there some way to create a layer file through web mapping application. If I expose data through a map service is there a way to create a .lyr file?
6
votes
1answer
211 views
Use existing property pages with new IFeatureRenderer
I am trying to override the drawing of a feature within a custom plugin data source. I believe this entails making a custom IFeatureRenderer.
However, the "renderer" I'd like to design would be 99% ...
4
votes
1answer
422 views
Edit SDE table with ArcObjects
The link below provides a code snippet for editing an SDE table with ArcObjects. Are there any other or newer code examples out there of how to edit a SDE table by using ArcObjects?
Edit SDE ...
0
votes
2answers
106 views
ArcGIS 10 and IGeometryServer2
Has anyone already use IGeometryServer2 or IGeometryServer within C# code ?
I'm looking for a sample since I have not succeeded in using it.
I have already selected:
One Polyline (IPolyline) : for ...
4
votes
1answer
1k views
Selecting the MAX value from a feature using ArcObjects?
I have a feature (point) with a field called 'Sequence'. The values in this column range from 1 to n. I can use IQueryFilter to get the first value, 1.
Dim pQry As IQueryFilter = ...
5
votes
1answer
1k views
How to save a layer file with a relative path
In VBA, how do you save a layer file (.lyr) with a relative path?
I have some code that loads a shapefile into ArcMap but I am unsure of how I go about using this shapefile to then save a layer file ...
2
votes
5answers
1k views
Programmatically calculating the length of all polyline features in a featureclass
I've come across this issue a few times and have not yet found an agreed upon solution on any forum.
Simply put, I have a featureclass containing many polyline features. I would like to calculate the ...
6
votes
1answer
307 views
Display Feedback “Stutters” When Moving Features
I have a custom tool for moving features that implements IDisplayFeedback and geometry-specific CoClasses to show the user where they are moving the feature.
IMovePolygonFeedback polygonFeedback;
...
2
votes
2answers
686 views
ArcObjects: Getting the properties of a layer that has lost its data source (VB.NET)
When you save an ArcGIS map document (MXD) and then change the data source of a layer in the MXD, you can no longer see the layer in the MXD and you must redefine its data source.
But suppose you ...
10
votes
2answers
570 views
ArcGIS 10 add-in: Top-level exception handling
The ArcGIS 10 add-in I'm working on is pretty simple -- just a tool control and a dockable window. I'm handling the specific exceptions I anticipate occuring at the source and throwing everything ...
4
votes
2answers
638 views
Problem creating a point IFeatureClass
I'm trying to create a point IFeatureClass, but my code doesn't work.
Public Function CreatePointFeatureClass(ByVal featureClassName As String, _
ByVal ...
2
votes
1answer
293 views
Draw Triangle Polygon with Dynamic Display
I'm trying to draw a custom polygon in Dynamic Display but its really not working at all. I can get it to work if I do this:
IPointCollection pc = seg.setRectangle( mapcontrol.map.extent.envelope) ...
19
votes
3answers
576 views
Are there any OpenSource ArcObjects Projects?
One of the major benefits of developing GIS applications based on opensource libraries, is that many projects spring up on top of them which are also opensource.
Well designed opensource projects ...
6
votes
6answers
517 views
Finding shortest path while avoiding polygon features
I'm developing an extension to ArcMap where I have a set of static, concave polygon features and I'm trying to find the shortest path between 2 points without crossing any of the polygons.
Is there ...
3
votes
2answers
426 views
How to apply a new renderer in ArcGIS?
I try to create a new renderer for a geo feature layer in ArcGIS 10. (My project is an asp.net based webservice)
There is one solution I got from a tutorial that works, but only for a ISimpleRenderer
...
4
votes
0answers
632 views
HRESULT E_FAIL error when doing batch geocoding in ArcObjects
I am trying to write a batch geocoding application in ArcObjects/C# and keep getting the meaningless "Error HRESULT E_FAIL has been returned from a call to a COM component" error (error code ...
2
votes
2answers
2k views
ArcObjects - Finding the intersection of a polyline and polygon?
I have a polyline and polygon. The polyline will intersect the polygon at two or fewer points. I would like to get these intersection points as X and Y values.
EDIT: Here is a quick code sample using ...
3
votes
0answers
206 views
ArcObjects - WFS:
Hy,
has anybody an example concerning accessing data from a WFS server by using the DataInteropability in ArcObjects?
I'm getting the right field definistion, but don't know how to read the data.
...
3
votes
4answers
2k views
Sum the values of a single raster and output the value as a number?
I have a floating point raster and have applied a conditional to it in order to only extract the positive values, so there are 'no data' "holes" in the raster. I simply need to sum the values from ...
2
votes
1answer
212 views
Determine which field is being modified during OnChangeFeature event
In the OnChangeFeature event is there a way to determine which field was just edited causing the event to fire? I'm doing several tasks in OnChangeFeature that only need to happen when certain fields ...
3
votes
2answers
256 views
Override default ArcMap editing error dialog
Is there a way to override this dialog easily?
The custom message is already there, but I'm guessing that my client will be more annoying and will want a translated message.
Can I replace that ...
2
votes
2answers
454 views
ArcObjects: Alternative workflow to using a SQL query with over 1000 values in IN statement
I have a ListBox listing the unique values of a column in a feature class; the user can select any number of values and click a button to then zoom to the set of features matching those values. A ...
2
votes
1answer
208 views
How can I call a command programmatically and change its defaults?
I am quite new to ArcObjects and development, but from what I have researched I can run a command programmatically like so:
[VB]
Dim pUID As New UID
Dim pCmdItem As ICommandItem
pUID.Value = ...
0
votes
1answer
95 views
Implement IEditSketch interface for custom cad tools
I want to build cad tools which will be used in municipality applications on esri.Let me tell the question.The user wants to edit on the map and does it by using IEditSketch.But i want to write a ...
1
vote
2answers
311 views
How to create a Esri Context Menu on desktop development
How can i create a context menu on ESRI Arcgis Desktop.And after creating it,how can i use it while a base command is open and active.I use C# but i can understand visual basic.
Thanks for your ...
5
votes
1answer
991 views
ArcObjects: modifying feature field value
I'm developing an ArcMap extension and looking for a way to change feature attributes knowing its feature class and OID (and, presumably, everything else that there is in IFeature). All layers use ...
6
votes
4answers
729 views
Deriving separate polylines from coded points using ArcObjects (Figure inside)
I have a single point featureclass that represents the left and right sides of a landform (the points are coded as either 'right' or 'left'). Visually I can pick out and digitize two lines along these ...
1
vote
2answers
742 views
ESRI Desktop Zoom to the feature
i find a feature by using IFeatureClass.Search then i want to show the feature on the screen.How can i do that ? is there a zoom interface or else ?
2
votes
0answers
222 views
ArcObjects: How to get a reference to layer in a java add in
I am trying to implement a java add-in version of this solution:
unique value symbolize layers from a lookup table.
At the same time I want to start coding in Java for the ArcGIS Desktop, so I am ...
1
vote
0answers
170 views
Assign Custom Band Combination To Image Catalogs In ArcGIS
I have an image catalog composed of 4 band rasters. I would like to use the same image catalog, and set custom renderers for a true color and false color combination and save each of those catalogs ...
3
votes
2answers
898 views
How to list ActiveView SelectionChanged event delegates in ArcObjects .NET?
I currently have an issue in an ArcObjects ArcMap add-in where my event handlers are seemingly-randomly being unhooked from the event I'm trying to catch. I've spent some time looking for a way to ...
2
votes
1answer
624 views
How to set the workspace to a featureclass from an unknown file gdb?
When a user loads an mxd, I am getting the IWorkspace object from the featurelayer's dataset:
IFeatureClass featClass = (IFeatureClass)featLayer.FeatureClass;
IDataset dataSet = ...
8
votes
2answers
381 views
ArcObjects diagram/object model?
Is there an existing object model diagram for ArcObjects? Something that can be printed out as a large poster.
5
votes
1answer
758 views
Automate export of ArcMap legends
I've been building legends for my javascript websites that use 9.3.1 services. I know there's the ESRI legend tool for older services but I don't feel that it does a good job of producing legend ...
3
votes
2answers
341 views
Cannot persist to a blob field
Following this initial thread I'm having some problems implementing what was suggested here:
Can I Store An ArcObject inside a BLOB?
Well, following the link Kirk provided, I've came up with this:
...
5
votes
1answer
250 views
Intersect between Surface and Ray
I am interested in finding the intersection of a Ray and a Surface in ArcObjects.
I already know of two solutions. First solution is to use the Locate method of ISurface:
Dim intersectionPoint As ...