ArcObjects is a set of COM-based APIs from ESRI Inc. that are used in several of their products including ArcGIS Desktop, ArcGIS Engine and ArcGIS Server.

learn more… | top users | synonyms (3)

0
votes
1answer
404 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
206 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
278 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
798 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
129 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 ...
5
votes
1answer
2k 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
2k 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
3k 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
408 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
1k 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
916 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
3answers
1k 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
488 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
776 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
1k 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
722 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
793 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 ...
4
votes
2answers
4k 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
301 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. ...
4
votes
4answers
3k 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
375 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
371 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
755 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
255 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
112 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
423 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
2k 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
917 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
793 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
305 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
241 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
2k 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
1k 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
527 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
1k 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
454 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
346 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 ...
3
votes
1answer
1k views

How can I execute my custom model's tools in VB.Net?

I want to execute one of my tools (which I created with Model Builder). I can execute a built-in tool by this code, but when I change the tool name with Model Tool Names it doesn't work. I gathered ...
0
votes
1answer
475 views

Any issues in converting a AutoCAD 2010 DWG to FeatureClass?

I have a small .NET script that uses ArcObjects such as CADtoFeatureClass to convert DWG files to ESRI FeatureClasses. This standalone program has been working great with DWGs created in previous ...
3
votes
1answer
141 views

Refreshing ArcIMS service with ArcObjects

Does anyone know if it is possible to refresh an ArcIMS service with ArcObjects and if so do you have a nice code snippet? :) I think it might have something to do with interface IIMSAxlRequest - but ...
3
votes
2answers
551 views

Count the number of segments of a polygon based on the angles

I wish to count the number of segments of a polygon that has a length less than 25 meters when the angle between two vertices is not close to 180 degrees i.e. if the angle is between 178 to 182 ...
5
votes
2answers
491 views

ArcGIS - IExtension.Startup() not launching

I have an ArcGIS 10 extension that will not launch .Startup() when ArcMap loads. I can get it to hit when I go to Customize->Extensions and un-check/re-check the extension name. Is there a setting ...
2
votes
2answers
476 views

Create a dbf table by copying the structure of another dbf table

I have a dbf table and I wish to automatically create another dbf table with a different name but with exactly the same structure i.e.fields as the existing table. Is there any ready code in VBA and ...
3
votes
1answer
384 views

Python metes and bounds automation in ArcMap

We are using the metes and bounds in old pipeline alignment sheets, when in an edit session in ArcMap, to plug in the "direction/length" values to generate the line segments. Does anyone have any ...
2
votes
1answer
466 views

convert SDE table to polygon feature class with Arcobjects

I figure there's a few ways to convert a table to polygon feature class, but what's the fatest and cleanest way to do it? My table has lat, long, azimuth, and beam width and based on all this info I ...
6
votes
1answer
1k views

How to always enable an ArcGIS toolbar?

On ArcMap 9.3.1, is there a way to ensure that a toolbar is always enabled? In my case, I want the Standard toolbar (the one with new/open/save/print icons) to always be visible. I'd like the ...
5
votes
1answer
554 views

Determining ESRI File Geodatabase release version?

Is there any method in Python, ArcObjects, or the File GDB API for determining the release version (9.3, 10.0, etc.) of a file geodatabase? There is a need to find all of our shared 10.0 version file ...
5
votes
3answers
1k views

How do I remove a join (between a standalone table and a feature layer) with ArcObjects?

I already know how to do a table join with ArcObjects, via the IDisplayTable, IMemoryRelationshipClassFactory etc. interfaces. Here are some links to resources that have example code for this: ...
9
votes
4answers
3k views

Connecting line features and determining the length of the longest line

I have a line feature (see image) representing a river that I created using the Stream_to_Feature tool. The attribute table contains several records representing different lines - the problem is the ...
5
votes
1answer
714 views

Geometric Network - Listening to network feature connection changes in the IObjectClassEvents::OnChange event

I need to be able to tell when a particular type of feature, that participates in a geometric network, is having its geometry automatically modified due to the geometric network. What i mean is that ...